combinators.smart, multiline: few $examples turn into $codes

db4
Keita Haga 2011-01-15 00:22:29 +09:00
parent 2e08b85977
commit 61881f1977
2 changed files with 2 additions and 4 deletions

View File

@ -158,10 +158,9 @@ HELP: nullary
} }
{ $description "Infers the number of inputs to a quotation and drops them from the stack." } { $description "Infers the number of inputs to a quotation and drops them from the stack." }
{ $examples { $examples
{ $example { $code
"""USING: combinators.smart kernel math ; """USING: combinators.smart kernel math ;
1 2 [ + ] nullary""" 1 2 [ + ] nullary"""
""
} }
} ; } ;

View File

@ -8,10 +8,9 @@ HELP: STRING:
HELP: /* HELP: /*
{ $syntax "/* comment */" } { $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." } { $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" "/* I think that I shall never see"
" A poem lovely as a tree. */" " A poem lovely as a tree. */"
""
} ; } ;
HELP: HEREDOC: HELP: HEREDOC: