]> gitweb.factorcode.org Git - factor.git/blobdiff - core/syntax/syntax-docs.factor
factor: Rename GENERIC# to GENERIC#:.
[factor.git] / core / syntax / syntax-docs.factor
index a4f93aea5066b56e55ed801662e6a5416c89bcba..a61fd1c4d02a697d57533558874aaac53ce497e5 100644 (file)
@@ -669,14 +669,14 @@ HELP: GENERIC:
 { $values { "word" "a new word to define" } }
 { $description "Defines a new generic word in the current vocabulary. Initially, it contains no methods, and thus will throw a " { $link no-method } " error when called." } ;
 
-HELP: GENERIC#
-{ $syntax "GENERIC# word n ( stack -- effect )" }
+HELP: GENERIC#:
+{ $syntax "GENERIC#: word n ( stack -- effect )" }
 { $values { "word" "a new word to define" } { "n" "the stack position to dispatch on" } }
 { $description "Defines a new generic word which dispatches on the " { $snippet "n" } "th most element from the top of the stack in the current vocabulary. Initially, it contains no methods, and thus will throw a " { $link no-method } " error when called." }
 { $notes
     "The following two definitions are equivalent:"
     { $code "GENERIC: foo ( obj -- )" }
-    { $code "GENERIC# foo 0 ( obj -- )" }
+    { $code "GENERIC#: foo 0 ( obj -- )" }
 } ;
 
 HELP: MATH: