combinators.smart, multiline: few $examples turn into $codes
parent
2e08b85977
commit
61881f1977
|
@ -158,10 +158,9 @@ HELP: nullary
|
|||
}
|
||||
{ $description "Infers the number of inputs to a quotation and drops them from the stack." }
|
||||
{ $examples
|
||||
{ $example
|
||||
{ $code
|
||||
"""USING: combinators.smart kernel math ;
|
||||
1 2 [ + ] nullary"""
|
||||
""
|
||||
}
|
||||
} ;
|
||||
|
||||
|
|
|
@ -8,10 +8,9 @@ HELP: STRING:
|
|||
HELP: /*
|
||||
{ $syntax "/* comment */" }
|
||||
{ $description "Provides C-like comments that can span multiple lines. One caveat is that " { $snippet "/*" } " and " { $snippet "*/" } " are still tokens and must not abut the comment text itself." }
|
||||
{ $example "USING: multiline ;"
|
||||
{ $code "USING: multiline ;"
|
||||
"/* I think that I shall never see"
|
||||
" A poem lovely as a tree. */"
|
||||
""
|
||||
} ;
|
||||
|
||||
HELP: HEREDOC:
|
||||
|
|
Loading…
Reference in New Issue