help, hints: remove syntax vocab in few examples
parent
6f0375b3ba
commit
9f7c22be60
|
@ -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\" } }"
|
||||
|
|
|
@ -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 ;"
|
||||
|
|
Loading…
Reference in New Issue