From 879da6be51557b1acba811954bc341afba502edd Mon Sep 17 00:00:00 2001 From: HorseMD Date: Thu, 13 Nov 2014 23:01:42 +0000 Subject: [PATCH] Fix typos. --- forth.html.markdown | 6 +++--- 1 file 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` `then` . @@ -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!