]> gitweb.factorcode.org Git - factor.git/commitdiff
sorting.extras: fix docs for compare-with
authorJohn Benediktsson <mrjbq7@gmail.com>
Tue, 24 Jan 2023 20:51:48 +0000 (12:51 -0800)
committerJohn Benediktsson <mrjbq7@gmail.com>
Tue, 24 Jan 2023 21:25:51 +0000 (13:25 -0800)
extra/sorting/extras/extras-docs.factor

index 1ae4202aa2fd7bebc903e8428620c203600fb726..cd5ada0c978f288c7a22dfff2ae44479b230898d 100644 (file)
@@ -6,5 +6,5 @@ HELP: map-sort
 { $description "Sort the elements of " { $snippet "seq" } " a sequence using " { $snippet "quot" } " as a key function." } ;
 
 HELP: compare-with
-{ $values { "quots" { $sequence { $quotation ( obj1 obj2 -- <=> ) } } } }
+{ $values { "quots" { $sequence { $quotation ( obj -- key ) } } } }
 { $description "Generate a chained comparator using the specified " { $snippet "quots" } " sequence of comparators." } ;