]> gitweb.factorcode.org Git - factor.git/commitdiff
match: Fix match-cond documentation
authorGiftpflanze <gifti@tools.wmflabs.org>
Thu, 8 Dec 2022 03:56:00 +0000 (03:56 +0000)
committerDoug Coleman <doug.coleman@gmail.com>
Thu, 8 Dec 2022 04:01:30 +0000 (22:01 -0600)
Match vars are self-evaluating, any mention of get can be confusing.

basis/match/match-docs.factor

index fd98ebf389aa208b931748660ce23628a2dd9710..137ef27529f6303c65d738c30d9220726036bd59 100644 (file)
@@ -15,7 +15,7 @@ HELP: match
 
 HELP: match-cond
 { $values { "assoc" "a sequence of pairs" } }
-{ $description "Calls the second quotation in the first pair whose first sequence yields a successful " { $link match } " against the top of the stack. The second quotation, when called, has the hashtable returned from the " { $link match } " call bound as the top namespace so " { $link get } " can be used to retrieve the values. A single quotation will always yield a true value. To have a fallthrough match clause use the " { $link _ } " match variable." }
+{ $description "Calls the second quotation in the first pair whose first sequence yields a successful " { $link match } " against the top of the stack. The second quotation, when called, has the hashtable returned from the " { $link match } " call bound as the top namespace so the match variables can be used to retrieve the values. A single quotation will always yield a true value. To have a fallthrough match clause use the " { $link _ } " match variable." }
 { $errors "Throws a " { $link no-match-cond } " error if none of the test quotations yield a true value." }
 { $examples
     { $code