]> gitweb.factorcode.org Git - factor.git/commitdiff
Fix throw-restarts example
authorDoug Coleman <doug.coleman@gmail.com>
Sat, 11 Sep 2010 19:12:24 +0000 (14:12 -0500)
committerDoug Coleman <doug.coleman@gmail.com>
Sun, 12 Sep 2010 00:41:06 +0000 (19:41 -0500)
core/continuations/continuations-docs.factor

index 8775e599a6cdc19f207a911beeac9e04353c27be..dfecf75f90a5d35d1cea19dde5d7e174f7a70d73 100644 (file)
@@ -206,8 +206,8 @@ HELP: throw-restarts
 { $examples
     "Try invoking one of the two restarts which are offered after the below code throws an error:"
     { $code
-        ": restart-test"
-        "    \"Oops!\" { { \"One\" 1 } { \"Two\" 2 } } condition"
+        ": restart-test ( -- )"
+        "    \"Oops!\" { { \"One\" 1 } { \"Two\" 2 } } throw-restarts"
         "    \"You restarted: \" write . ;"
         "restart-test"
     }