Fix an example in syntax docs
parent
122203d142
commit
c2a35ecf33
|
@ -526,10 +526,10 @@ HELP: ((
|
||||||
{ $notes "Useful for meta-programming with " { $link define-declared } "." }
|
{ $notes "Useful for meta-programming with " { $link define-declared } "." }
|
||||||
{ $examples
|
{ $examples
|
||||||
{ $code
|
{ $code
|
||||||
"SYMBOL: my-dynamic-word"
|
"<< SYMBOL: my-dynamic-word"
|
||||||
"USING: math random words ;"
|
"USING: math random words ;"
|
||||||
"3 { [ + ] [ - ] [ * ] [ / ] } random curry"
|
"my-dynamic-word 3 { [ + ] [ - ] [ * ] [ / ] } random curry"
|
||||||
"(( x -- y )) define-declared"
|
"(( x -- y )) define-declared >>"
|
||||||
}
|
}
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
|
@ -789,4 +789,4 @@ HELP: execute(
|
||||||
{ $syntax "execute( stack -- effect )" }
|
{ $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." } ;
|
{ $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
|
||||||
|
|
Loading…
Reference in New Issue