]> gitweb.factorcode.org Git - factor.git/commitdiff
Update GENERIC# docs now that stack effect is mandatory
authorSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Fri, 27 Mar 2009 02:26:06 +0000 (21:26 -0500)
committerSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Fri, 27 Mar 2009 02:26:06 +0000 (21:26 -0500)
core/syntax/syntax-docs.factor

index 6a7e8116cdd2409718f630f62c8243b2bfcb8d34..e8f699748f08cf0c9f2e79adcb24f06ab1deeed1 100644 (file)
@@ -566,8 +566,8 @@ HELP: GENERIC#
 { $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" }
-    { $code "GENERIC# foo 0" }
+    { $code "GENERIC: foo ( obj -- )" }
+    { $code "GENERIC# foo 0 ( obj -- )" }
 } ;
 
 HELP: MATH: