]> gitweb.factorcode.org Git - factor.git/commitdiff
kernel: improve docs for ?.
authorJohn Benediktsson <mrjbq7@gmail.com>
Sun, 20 Mar 2016 17:36:23 +0000 (10:36 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Sun, 20 Mar 2016 17:36:23 +0000 (10:36 -0700)
core/kernel/kernel-docs.factor

index e11660d00e9c0f85eb303bbc9bc27f6e9ae5f0f5..2ad5d16cce1462bea58adfaefda1c8b5a3a344fb 100644 (file)
@@ -142,7 +142,7 @@ HELP: clone
 { $contract "Outputs a new object equal to the given object. This is not guaranteed to actually copy the object; it does nothing with immutable objects, and does not copy words either. However, sequences and tuples can be cloned to obtain a shallow copy of the original." } ;
 
 HELP: ?
-{ $values { "?" "a generalized boolean" } { "true" object } { "false" object } { "true/false" "one two input objects" } }
+{ $values { "?" "a generalized boolean" } { "true" object } { "false" object } { "true/false" { { $snippet "true" } " or " { $snippet "false" } } } }
 { $description "Chooses between two values depending on the boolean value of " { $snippet "cond" } "." } ;
 
 HELP: boolean