From d74db5220466689062efb0df4a9fc560edd814fa Mon Sep 17 00:00:00 2001 From: Doug Coleman Date: Mon, 26 Jan 2009 15:05:45 -0600 Subject: [PATCH] fix example in docs --- core/continuations/continuations-docs.factor | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/continuations/continuations-docs.factor b/core/continuations/continuations-docs.factor index ea3470feb3..3364f44657 100644 --- a/core/continuations/continuations-docs.factor +++ b/core/continuations/continuations-docs.factor @@ -245,8 +245,9 @@ 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 ;" - "[ 5 random 0 = ] retry t" + "[ 5 random 0 = ] 5 retry t" "t" } } ;