]> gitweb.factorcode.org Git - factor.git/commitdiff
kernel-docs: refines values and description for ?
authorMarc Michael <yogi@turboland.de>
Tue, 5 Sep 2023 20:38:06 +0000 (22:38 +0200)
committerJohn Benediktsson <mrjbq7@gmail.com>
Wed, 6 Sep 2023 15:47:46 +0000 (08:47 -0700)
core/kernel/kernel-docs.factor

index fe0f591b6f3da63d5181f093cf51abfbf3264966..50e571a99e2046291bfa0145d4c153cfea1da3aa 100644 (file)
@@ -163,8 +163,8 @@ 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" { { $snippet "true" } " or " { $snippet "false" } } } }
-{ $description "Chooses between two values depending on the boolean value of " { $snippet "cond" } "." } ;
+{ $values { "?" boolean } { "true" object } { "false" object } { "true/false" object } }
+{ $description "Chooses between two values depending on the boolean value of " { $snippet "?" } "." }
 
 HELP: boolean
 { $class-description "A union of the " { $link POSTPONE: t } " and " { $link POSTPONE: f } " classes." } ;