Clarify the swapMVar haddock doc
authorIan Lynagh <igloo@earth.li>
Tue, 7 Aug 2007 18:55:57 +0000 (18:55 +0000)
committerIan Lynagh <igloo@earth.li>
Tue, 7 Aug 2007 18:55:57 +0000 (18:55 +0000)
Control/Concurrent/MVar.hs

index 7213cf1..fc3a30a 100644 (file)
@@ -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