]> gitweb.factorcode.org Git - factor.git/commitdiff
combinators.smart, multiline: few $examples turn into $codes
authorKeita Haga <keitahaga@mail.com>
Fri, 14 Jan 2011 15:22:29 +0000 (00:22 +0900)
committerKeita Haga <keitahaga@mail.com>
Fri, 14 Jan 2011 15:22:29 +0000 (00:22 +0900)
basis/combinators/smart/smart-docs.factor
basis/multiline/multiline-docs.factor

index 22cf21c0e7552efacbac3009b27be8f6247d9841..cdd2744888098932ddd2a9adc78d28ea5c912b67 100644 (file)
@@ -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"""
-""
     }
 } ;
 
index 09f86197ba5f5c3cb2e00949941c755b9b670352..d22cbdf1ae1263e571708d0d165f21282de7d61b 100644 (file)
@@ -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: