]> gitweb.factorcode.org Git - factor.git/commitdiff
help, hints: remove syntax vocab in few examples
authorKeita Haga <keitahaga@mail.com>
Fri, 3 Dec 2010 16:25:14 +0000 (01:25 +0900)
committerKeita Haga <keitahaga@mail.com>
Fri, 3 Dec 2010 16:25:14 +0000 (01:25 +0900)
basis/help/help-docs.factor
basis/hints/hints-docs.factor

index 597830ab7e678439156846a0c4a3020a7ae2846a..8e22aad21207c61de83699da9154adaa22ac0e22 100644 (file)
@@ -476,7 +476,7 @@ HELP: HELP:
 { $description "Defines documentation for a word." }
 { $examples
     { $code
-        "USING: help help.markup help.syntax math syntax ;"
+        "USING: help help.markup help.syntax math ;"
         ": foo ( m -- n ) 2 + ;"
         "HELP: foo"
         "{ $values { \"m\" \"an integer\" } { \"n\" \"an integer\" } }"
index 4ff973a25118ed1b75a5d0d41a6a810a405e905f..b5e7b377258e2740c63f3f5aaff908c10d120360 100644 (file)
@@ -27,13 +27,12 @@ $nl
 { $examples
     "The " { $link append } " word has a specializer for the very common case where two strings or two arrays are appended:"
     { $code
-        "USING: arrays hints sequences strings syntax ;"
+        "USING: arrays hints sequences strings ;"
         "HINTS: append { string string } { array array } ;"
     }
     "Specializers can also be defined on methods:"
     { $code
-        "USING: assocs hashtables hints kernel sequences"
-        "syntax ;"
+        "USING: assocs hashtables hints kernel sequences ;"
         "GENERIC: count-occurrences ( elt obj -- n )"
         ""
         "M: sequence count-occurrences [ = ] with count ;"