help: add stack effect declaration and using to HELP: example in docs
parent
2dbee396fb
commit
cca391861e
|
@ -476,7 +476,8 @@ HELP: HELP:
|
|||
{ $description "Defines documentation for a word." }
|
||||
{ $examples
|
||||
{ $code
|
||||
": foo 2 + ;"
|
||||
"USING: help help.markup help.syntax math syntax ;"
|
||||
": foo ( m -- n ) 2 + ;"
|
||||
"HELP: foo"
|
||||
"{ $values { \"m\" \"an integer\" } { \"n\" \"an integer\" } }"
|
||||
"{ $description \"Increments a value by 2.\" } ;"
|
||||
|
|
Loading…
Reference in New Issue