help, hints: remove syntax vocab in few examples

db4
Keita Haga 2010-12-04 01:25:14 +09:00
parent 6f0375b3ba
commit 9f7c22be60
2 changed files with 3 additions and 4 deletions

View 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\" } }"

View 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 ;"