Fix promises help lint

db4
Slava Pestov 2008-04-27 06:46:01 -05:00
parent 31308a7fb2
commit c88cf361e7
1 changed files with 1 additions and 1 deletions

View File

@ -29,6 +29,6 @@ HELP: LAZY:
{ $values { "word" "a new word to define" } { "definition" "a word definition" } } { $values { "word" "a new word to define" } { "definition" "a word definition" } }
{ $description "Creates a lazy word in the current vocabulary. When executed the word will return a " { $link promise } " that when forced, executes the word definition. Any values on the stack that are required by the word definition are captured along with the promise." } { $description "Creates a lazy word in the current vocabulary. When executed the word will return a " { $link promise } " that when forced, executes the word definition. Any values on the stack that are required by the word definition are captured along with the promise." }
{ $examples { $examples
{ $example "USING: math prettyprint promises ;" "LAZY: my-add ( a b -- c ) + ;" "1 2 my-add force ." "3" } { $example "USING: arrays sequences prettyprint promises ;" "IN: scratchpad" "LAZY: zeroes ( -- pair ) 0 zeroes 2array ;" "zeroes force second force first ." "0" }
} }
{ $see-also force promise-with promise-with2 } ; { $see-also force promise-with promise-with2 } ;