From d5f2a2133b17c45c414476cc896b259d06151736 Mon Sep 17 00:00:00 2001 From: Doug Coleman Date: Tue, 3 Feb 2009 21:27:59 -0600 Subject: [PATCH 1/2] add random to using list --- core/continuations/continuations-docs.factor | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/continuations/continuations-docs.factor b/core/continuations/continuations-docs.factor index 2cc44bee1b..7eb8f36c73 100644 --- a/core/continuations/continuations-docs.factor +++ b/core/continuations/continuations-docs.factor @@ -246,7 +246,7 @@ HELP: retry { $description "Tries the quotation up to " { $snippet "n" } " times until it returns true. Retries the quotation if an exception is thrown or if the quotation returns " { $link f } ". The quotation is expected to have side effects that may fail, such as generating a random name for a new file until successful." } { $examples "Try to get a 0 as a random number:" - { $unchecked-example "USING: continuations math prettyprint ;" + { $unchecked-example "USING: continuations math prettyprint random ;" "[ 5 random 0 = ] 5 retry t" "t" } From 86a46477a68af36862ff0432770228710ae4f7a4 Mon Sep 17 00:00:00 2001 From: Doug Coleman Date: Tue, 3 Feb 2009 21:29:24 -0600 Subject: [PATCH 2/2] Unchecked-examples are hard, let's go shopping. --- core/continuations/continuations-docs.factor | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/continuations/continuations-docs.factor b/core/continuations/continuations-docs.factor index 7eb8f36c73..2bf59f7780 100644 --- a/core/continuations/continuations-docs.factor +++ b/core/continuations/continuations-docs.factor @@ -247,7 +247,7 @@ HELP: retry { $examples "Try to get a 0 as a random number:" { $unchecked-example "USING: continuations math prettyprint random ;" - "[ 5 random 0 = ] 5 retry t" + "[ 5 random 0 = ] 5 retry" "t" } } ;