Skip to content

Commit 747a097

Browse files
committed
Make the code typecheck
1 parent 91460fe commit 747a097

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎tutorials/3ch.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -285,10 +285,11 @@ of exit reasons.
285285

286286
{% highlight haskell %}
287287
demo = do
288-
pid <- spawnLocal $ receive >>= return
288+
pid <- spawnLocal $ expect >>= return
289289
link pid
290290
send pid ()
291-
() <- receive
291+
() <- expect
292+
return ()
292293
{% endhighlight %}
293294

294295
The medium that link failures uses to signal exit conditions is the same as exit and kill

0 commit comments

Comments
 (0)