Fix an example in syntax docs

db4
Alex Chapman 2009-04-17 19:07:45 +10:00
parent 122203d142
commit c2a35ecf33
1 changed files with 4 additions and 4 deletions

View File

@ -526,10 +526,10 @@ HELP: ((
{ $notes "Useful for meta-programming with " { $link define-declared } "." }
{ $examples
{ $code
"SYMBOL: my-dynamic-word"
"<< SYMBOL: my-dynamic-word"
"USING: math random words ;"
"3 { [ + ] [ - ] [ * ] [ / ] } random curry"
"(( x -- y )) define-declared"
"my-dynamic-word 3 { [ + ] [ - ] [ * ] [ / ] } random curry"
"(( x -- y )) define-declared >>"
}
} ;
@ -789,4 +789,4 @@ HELP: execute(
{ $syntax "execute( stack -- effect )" }
{ $description "Calls the word on the top of the stack, asserting that it has the given stack effect. The word does not need to be known at compile time." } ;
{ POSTPONE: call( POSTPONE: execute( } related-words
{ POSTPONE: call( POSTPONE: execute( } related-words