summaryrefslogtreecommitdiffhomepage
path: root/forth.html.markdown
diff options
context:
space:
mode:
authorHorseMD <alightedness@gmail.com>2014-11-14 16:49:25 +0000
committerHorseMD <alightedness@gmail.com>2014-11-14 16:49:25 +0000
commit6e912f4b46b02fbed110502e5b1cf1ecd600ab4c (patch)
tree0c99e3363dc7aa60d4bb69aa4b18b12a90eff58e /forth.html.markdown
parentce1d44b308150c88ee61c819ed4b2242af4fcf14 (diff)
Fix return-comment indentation.
Diffstat (limited to 'forth.html.markdown')
-rw-r--r--forth.html.markdown4
1 files changed, 2 insertions, 2 deletions
diff --git a/forth.html.markdown b/forth.html.markdown
index 25a9f3b8..4c89a5ec 100644
--- a/forth.html.markdown
+++ b/forth.html.markdown
@@ -110,8 +110,8 @@ one-to-12 \ 0 1 2 3 4 5 6 7 8 9 10 11 12 ok
\ `?do` works similarly, except it will skip the loop if the end and start
\ numbers are equal.
-: squares ( n -- ) 0 ?do i square . loop ; \ ok
-10 squares \ 0 1 4 9 16 25 36 49 64 81 ok
+: squares ( n -- ) 0 ?do i square . loop ; \ ok
+10 squares \ 0 1 4 9 16 25 36 49 64 81 ok
\ Change the "step" with `+loop`:
: threes ( n n -- ) ?do i . 3 +loop ; \ ok