help: add stack effect declaration and using to HELP: example in docs

db4
Keita Haga 2010-11-29 03:44:45 +09:00
parent 2dbee396fb
commit cca391861e
1 changed files with 2 additions and 1 deletions

View File

@ -476,7 +476,8 @@ HELP: HELP:
{ $description "Defines documentation for a word." } { $description "Defines documentation for a word." }
{ $examples { $examples
{ $code { $code
": foo 2 + ;" "USING: help help.markup help.syntax math syntax ;"
": foo ( m -- n ) 2 + ;"
"HELP: foo" "HELP: foo"
"{ $values { \"m\" \"an integer\" } { \"n\" \"an integer\" } }" "{ $values { \"m\" \"an integer\" } { \"n\" \"an integer\" } }"
"{ $description \"Increments a value by 2.\" } ;" "{ $description \"Increments a value by 2.\" } ;"