]> gitweb.factorcode.org Git - factor.git/commitdiff
Fix an example in syntax docs
authorAlex Chapman <chapman.alex@gmail.com>
Fri, 17 Apr 2009 09:07:45 +0000 (19:07 +1000)
committerAlex Chapman <chapman.alex@gmail.com>
Fri, 17 Apr 2009 09:07:45 +0000 (19:07 +1000)
core/syntax/syntax-docs.factor

index 33a0096ff9324a8f7564562d00b397bb5986ce68..f869cff50614f308caabd1e1010cdc84d8d9ca06 100644 (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
\ No newline at end of file
+{ POSTPONE: call( POSTPONE: execute( } related-words