]> gitweb.factorcode.org Git - factor.git/commitdiff
sequences: surround a $example with a $examples to the if-empty word's help
authorKeita Haga <keitahaga@mail.com>
Wed, 26 Jan 2011 06:06:35 +0000 (15:06 +0900)
committerKeita Haga <keitahaga@mail.com>
Wed, 26 Jan 2011 06:06:35 +0000 (15:06 +0900)
core/sequences/sequences-docs.factor

index ea3e4cf4d3d1c7f0ce1cdd81b69229a46627e334..22e1eede419c745d9b74e326b4a213c9fef5f2d6 100644 (file)
@@ -83,10 +83,12 @@ HELP: empty?
 HELP: if-empty
 { $values { "seq" sequence } { "quot1" quotation } { "quot2" quotation } }
 { $description "Makes an implicit check if the sequence is empty. An empty sequence is dropped and " { $snippet "quot1" } " is called. Otherwise, if the sequence has any elements, " { $snippet "quot2" } " is called on it." }
-{ $example
-    "USING: kernel prettyprint sequences ;"
-    "{ 1 2 3 } [ \"empty sequence\" ] [ sum ] if-empty ."
-    "6"
+{ $examples
+    { $example
+        "USING: kernel prettyprint sequences ;"
+        "{ 1 2 3 } [ \"empty sequence\" ] [ sum ] if-empty ."
+        "6"
+    }
 } ;
 
 HELP: when-empty