help, hints: remove syntax vocab in few examples
parent
6f0375b3ba
commit
9f7c22be60
|
@ -476,7 +476,7 @@ HELP: HELP:
|
||||||
{ $description "Defines documentation for a word." }
|
{ $description "Defines documentation for a word." }
|
||||||
{ $examples
|
{ $examples
|
||||||
{ $code
|
{ $code
|
||||||
"USING: help help.markup help.syntax math syntax ;"
|
"USING: help help.markup help.syntax math ;"
|
||||||
": foo ( m -- n ) 2 + ;"
|
": foo ( m -- n ) 2 + ;"
|
||||||
"HELP: foo"
|
"HELP: foo"
|
||||||
"{ $values { \"m\" \"an integer\" } { \"n\" \"an integer\" } }"
|
"{ $values { \"m\" \"an integer\" } { \"n\" \"an integer\" } }"
|
||||||
|
|
|
@ -27,13 +27,12 @@ $nl
|
||||||
{ $examples
|
{ $examples
|
||||||
"The " { $link append } " word has a specializer for the very common case where two strings or two arrays are appended:"
|
"The " { $link append } " word has a specializer for the very common case where two strings or two arrays are appended:"
|
||||||
{ $code
|
{ $code
|
||||||
"USING: arrays hints sequences strings syntax ;"
|
"USING: arrays hints sequences strings ;"
|
||||||
"HINTS: append { string string } { array array } ;"
|
"HINTS: append { string string } { array array } ;"
|
||||||
}
|
}
|
||||||
"Specializers can also be defined on methods:"
|
"Specializers can also be defined on methods:"
|
||||||
{ $code
|
{ $code
|
||||||
"USING: assocs hashtables hints kernel sequences"
|
"USING: assocs hashtables hints kernel sequences ;"
|
||||||
"syntax ;"
|
|
||||||
"GENERIC: count-occurrences ( elt obj -- n )"
|
"GENERIC: count-occurrences ( elt obj -- n )"
|
||||||
""
|
""
|
||||||
"M: sequence count-occurrences [ = ] with count ;"
|
"M: sequence count-occurrences [ = ] with count ;"
|
||||||
|
|
Loading…
Reference in New Issue