]> gitweb.factorcode.org Git - factor.git/commitdiff
math-docs: fix `times` documentation
authorAlexander Iljin <ajsoft@yandex.ru>
Sat, 13 Jun 2020 11:33:41 +0000 (13:33 +0200)
committerJohn Benediktsson <mrjbq7@gmail.com>
Sun, 19 Jul 2020 14:24:11 +0000 (14:24 +0000)
The word `each` used to loop over integers in the past, but it does not
anymore.

core/math/math-docs.factor

index 236ba6f4cc72bca9deafe4f860b4ff523f365780..4be97fdf48dad7ac17799ae4e8e53e3fa7081463 100644 (file)
@@ -312,7 +312,7 @@ HELP: unless-zero
 HELP: times
 { $values { "n" integer } { "quot" quotation } }
 { $description "Calls the quotation " { $snippet "n" } " times." }
-{ $notes "If you need to pass the current index to the quotation, use " { $link each } "." }
+{ $notes "If you need to pass the current index to the quotation, use " { $link each-integer } "." }
 { $examples
     { $example "USING: io math ;" "3 [ \"Hi\" print ] times" "Hi\nHi\nHi" }
 } ;