From b1e4e89b843448058b5a4f076e0b6e0d3c51dfcb Mon Sep 17 00:00:00 2001 From: zlarsen Date: Fri, 9 Oct 2015 13:59:25 -0600 Subject: fixes forth typo changes util to until --- forth.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'forth.html.markdown') diff --git a/forth.html.markdown b/forth.html.markdown index f7c0bf34..1db85bf0 100644 --- a/forth.html.markdown +++ b/forth.html.markdown @@ -117,7 +117,7 @@ one-to-12 \ 0 1 2 3 4 5 6 7 8 9 10 11 12 ok : threes ( n n -- ) ?do i . 3 +loop ; \ ok 15 0 threes \ 0 3 6 9 12 ok -\ Indefinite loops with `begin` `unil`: +\ Indefinite loops with `begin` `until`: : death ( -- ) begin ." Are we there yet?" 0 until ; \ ok \ ---------------------------- Variables and Memory ---------------------------- -- cgit v1.2.3 From d49265b30fb6a6bc5a9574c59e043f9a18e0a96d Mon Sep 17 00:00:00 2001 From: zlarsen Date: Fri, 9 Oct 2015 15:22:34 -0600 Subject: Fixes another Forth typo --- forth.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'forth.html.markdown') diff --git a/forth.html.markdown b/forth.html.markdown index f7c0bf34..5c161746 100644 --- a/forth.html.markdown +++ b/forth.html.markdown @@ -133,7 +133,7 @@ variable age \ ok age @ . \ 21 ok age ? \ 21 ok -\ Constants are quite simiar, except we don't bother with memory addresses: +\ Constants are quite similar, except we don't bother with memory addresses: 100 constant WATER-BOILING-POINT \ ok WATER-BOILING-POINT . \ 100 ok -- cgit v1.2.3