projects
/
ghc-base.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Clarify the swapMVar haddock doc
[ghc-base.git]
/
Control
/
Concurrent
/
MVar.hs
diff --git
a/Control/Concurrent/MVar.hs
b/Control/Concurrent/MVar.hs
index
7213cf1
..
fc3a30a
100644
(file)
--- a/
Control/Concurrent/MVar.hs
+++ b/
Control/Concurrent/MVar.hs
@@
-59,7
+59,7
@@
readMVar m =
putMVar m a
return a
--- |Swap the contents of an 'MVar' for a new value.
+-- |Atomically, put a new value into an 'MVar' and return the old value.
swapMVar :: MVar a -> a -> IO a
swapMVar mvar new =
block $ do