math: fix typo in docs
parent
a093c454c1
commit
3aaf58a3dd
|
@ -244,7 +244,7 @@ HELP: 2/
|
||||||
|
|
||||||
HELP: 2^
|
HELP: 2^
|
||||||
{ $values { "n" "a positive integer" } { "2^n" "a positive integer" } }
|
{ $values { "n" "a positive integer" } { "2^n" "a positive integer" } }
|
||||||
{ $description "Computes two to the power of " { $snippet "n" } ". This word will only give correct results if " { $snippet "n" } " is greater than zero; for the general case, use " { $snippet "2 swap ^" } "." } ;
|
{ $description "Computes two to the power of " { $snippet "n" } ". This word will only give correct results if " { $snippet "n" } " is greater than zero; for the general case, use " { $snippet "2 swap ^" } "." } ;
|
||||||
|
|
||||||
HELP: zero?
|
HELP: zero?
|
||||||
{ $values { "x" number } { "?" "a boolean" } }
|
{ $values { "x" number } { "?" "a boolean" } }
|
||||||
|
@ -421,7 +421,7 @@ HELP: all-integers?
|
||||||
|
|
||||||
HELP: find-integer
|
HELP: find-integer
|
||||||
{ $values { "n" integer } { "quot" { $quotation "( ... i -- ... ? )" } } { "i" "an integer or " { $link f } } }
|
{ $values { "n" integer } { "quot" { $quotation "( ... i -- ... ? )" } } { "i" "an integer or " { $link f } } }
|
||||||
{ $description "Applies the quotation to each integer from 0 up to " { $snippet "n" } ", excluding " { $snippet "n" } ". Iterationi stops when the quotation outputs a true value or the end is reached. If the quotation yields a true value for some integer, this word outputs that integer. Otherwise, this word outputs " { $link f } "." }
|
{ $description "Applies the quotation to each integer from 0 up to " { $snippet "n" } ", excluding " { $snippet "n" } ". Iteration stops when the quotation outputs a true value or the end is reached. If the quotation yields a true value for some integer, this word outputs that integer. Otherwise, this word outputs " { $link f } "." }
|
||||||
{ $notes "This word is used to implement " { $link find } "." } ;
|
{ $notes "This word is used to implement " { $link find } "." } ;
|
||||||
|
|
||||||
HELP: find-last-integer
|
HELP: find-last-integer
|
||||||
|
|
Loading…
Reference in New Issue