]> gitweb.factorcode.org Git - factor.git/commitdiff
update hints docs to demonstrate M\ method syntax instead of old array syntax for...
authorJoe Groff <arcata@gmail.com>
Thu, 5 Nov 2009 20:05:39 +0000 (14:05 -0600)
committerJoe Groff <arcata@gmail.com>
Thu, 5 Nov 2009 20:05:39 +0000 (14:05 -0600)
basis/hints/hints-docs.factor

index 56a2cb9142a1bdc2c1a90ab7c804ef929269a089..46bdc698b73a59874c1884ba25626bfec96aa5fa 100644 (file)
@@ -20,7 +20,7 @@ HELP: specialized-def
 { $description "Outputs the definition of a word after it has been split into specialized branches. This is the definition which will actually be compiled by the compiler." } ;
 
 HELP: HINTS:
-{ $values { "defspec" "a definition specifier" } { "hints..." "a list of sequences of classes or literals" } }
+{ $values { "defspec" "a word or method" } { "hints..." "a list of sequences of classes or literals" } }
 { $description "Defines specialization hints for a word or a method."
 $nl
 "Each sequence in the list will cause a specialized version of the word to be compiled. Classes are tested for using their predicate, and literals are tested using " { $link eq? } "." }
@@ -35,8 +35,8 @@ $nl
     "M: assoc count-occurrences"
     "    swap [ = nip ] curry assoc-filter assoc-size ;"
     ""
-    "HINTS: { sequence count-occurrences } { object array } ;"
-    "HINTS: { assoc count-occurrences } { object hashtable } ;"
+    "HINTS: M\ sequence count-occurrences { object array } ;"
+    "HINTS: M\ assoc count-occurrences { object hashtable } ;"
 }
 } ;