[project @ 2002-08-30 07:56:48 by stolz]
authorstolz <unknown>
Fri, 30 Aug 2002 07:56:48 +0000 (07:56 +0000)
committerstolz <unknown>
Fri, 30 Aug 2002 07:56:48 +0000 (07:56 +0000)
Fix sample way of expressing 'killThread' in docs.

From: Dean Herington <heringto@cs.unc.edu>

PLEASE MERGE

GHC/Conc.lhs

index e5c3333..3c994f3 100644 (file)
@@ -93,7 +93,7 @@ The memory used by the thread will be garbage collected if it isn\'t
 referenced from anywhere.  The 'killThread' function may be defined in
 terms of 'throwTo':
 
->   killThread = throwTo (AsyncException ThreadKilled)
+>   killThread tid = throwTo tid (AsyncException ThreadKilled)
 -}
 killThread :: ThreadId -> IO ()
 killThread (ThreadId id) = IO $ \ s ->