mirror of
https://github.com/remko/waforth
synced 2025-01-18 22:26:39 +01:00
examples: Fix stack comment
This commit is contained in:
parent
c6ba6270b1
commit
0a7b49d29d
2 changed files with 2 additions and 2 deletions
|
@ -99,7 +99,7 @@ forth.bindAsync("ip?", async () => {
|
||||||
|
|
||||||
forth.interpret(`
|
forth.interpret(`
|
||||||
( IP? callback. Called after IP address was received )
|
( IP? callback. Called after IP address was received )
|
||||||
: IP?-CB ( flag c-addr n -- )
|
: IP?-CB ( true c-addr n | false -- )
|
||||||
IF
|
IF
|
||||||
." Your IP address is " TYPE CR
|
." Your IP address is " TYPE CR
|
||||||
ELSE
|
ELSE
|
||||||
|
|
|
@ -23,7 +23,7 @@ import WAForth from "waforth";
|
||||||
// Load Forth code to bind the "ip?" call, and define the continuation callback
|
// Load Forth code to bind the "ip?" call, and define the continuation callback
|
||||||
forth.interpret(`
|
forth.interpret(`
|
||||||
( IP? callback. Called after IP address was received )
|
( IP? callback. Called after IP address was received )
|
||||||
: IP?-CB ( flag c-addr n -- )
|
: IP?-CB ( true c-addr n | false -- )
|
||||||
IF
|
IF
|
||||||
." Your IP address is " TYPE CR
|
." Your IP address is " TYPE CR
|
||||||
ELSE
|
ELSE
|
||||||
|
|
Loading…
Reference in a new issue