coroutines tweak
authorJim Pryor <profjim@jimpryor.net>
Wed, 1 Dec 2010 04:54:28 +0000 (23:54 -0500)
committerJim Pryor <profjim@jimpryor.net>
Wed, 1 Dec 2010 04:54:28 +0000 (23:54 -0500)
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
coroutines_and_aborts.mdwn

index 3d58e31..3283079 100644 (file)
@@ -358,7 +358,7 @@ How about this:
 
 Remind you of anything we discussed earlier? /Trivia.
 
-Of course, it's possible to handle errors in other ways too. There's no reason why the implementation of `List.nth` *had* to raise an exception. They might instead have returned `Some a` when the list had an nth member `a`, and `None` when it does not. But it's pedagogically useful for us to think about this pattern now.
+Of course, it's possible to handle errors in other ways too. There's no reason why the implementation of `List.nth` *had* to raise an exception. They might instead have returned `Some a` when the list had an nth member `a`, and `None` when it does not. But it's pedagogically useful for us to think about the exception-raising pattern now.
 
 When an exception is raised, it percolates up through the code that called it, until it finds a surrounding `try ... with ...` that matches it. That might not be the first `try ... with ...` that it encounters. For example: