summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorHorseMD <alightedness@gmail.com>2014-11-13 23:01:42 +0000
committerHorseMD <alightedness@gmail.com>2014-11-13 23:01:42 +0000
commit879da6be51557b1acba811954bc341afba502edd (patch)
tree741128028313e9dbfe7681e287cf48dfc85023fe
parent4d80a56d2c3311b56e2ccee873bb970abe82e9c4 (diff)
Fix typos.
-rw-r--r--forth.html.markdown6
1 files changed, 3 insertions, 3 deletions
diff --git a/forth.html.markdown b/forth.html.markdown
index 77358dcd..9c95f66b 100644
--- a/forth.html.markdown
+++ b/forth.html.markdown
@@ -81,8 +81,8 @@ see square \ dup * ; ok
\ In Forth, -1 is used to represent truth, and 0 is used to represent false.
\ The idea is that -1 is 11111111 in binary, whereas 0 is obviously 0 in binary.
\ However, any non-zero value is usually treated as being true:
-42 42 = / -1 ok
-12 53 = / 0 ok
+42 42 = \ -1 ok
+12 53 = \ 0 ok
\ `if` is a *compile-only word*. This means that it can only be used when we're
\ compiling a word. The format is `if` <stuff to do> `then` <rest of program>.
@@ -99,7 +99,7 @@ see square \ dup * ; ok
\ `do` is like `if` in that it is also a compile-only word, though it uses
\ `loop` as its terminator:
: myloop ( -- ) 5 0 do cr ." Hello!" loop ; \ ok
-test
+myloop
\ Hello!
\ Hello!
\ Hello!