]> gitweb.factorcode.org Git - factor.git/commitdiff
classes.maybe: fix help-lint for docs.
authorJohn Benediktsson <mrjbq7@gmail.com>
Fri, 17 Mar 2017 20:21:36 +0000 (13:21 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Fri, 17 Mar 2017 20:21:36 +0000 (13:21 -0700)
Right now the examples must have stack effect ( -- ).  Some future
version might have an output stack assertion, but for now use
prettyprint to check result.

core/classes/maybe/maybe-docs.factor

index ca1d2cae99c3179e38f4f076f1f2a652334448bd..8545efd6b1738b15bc0347ff3418c9ecf770b6eb 100644 (file)
@@ -11,8 +11,9 @@ ARTICLE: "maybes" "Maybe classes"
 "A slot with an empty " { $snippet "maybe{ }" } " class can only hold the " { $link POSTPONE: f } " value."
 { $examples
     { $example
+        "USING: prettyprint ;"
         "TUPLE: test-maybe { value maybe{ fixnum string } } ;"
-        "test-maybe new value>>"
+        "test-maybe new value>> ."
         "f"
     }
 }