mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 17:41:41 +00:00
Fix typo when demonstrating variables.
This commit is contained in:
parent
6e912f4b46
commit
1e1ff8bd10
@ -130,8 +130,8 @@ variable age \ ok
|
|||||||
|
|
||||||
\ Finally we can print our variable using the "read" word `@`, which adds the
|
\ Finally we can print our variable using the "read" word `@`, which adds the
|
||||||
\ value to the stack, or use `?` that reads and prints it in one go.
|
\ value to the stack, or use `?` that reads and prints it in one go.
|
||||||
age @ . \ 12 ok
|
age @ . \ 21 ok
|
||||||
age ? \ 12 ok
|
age ? \ 21 ok
|
||||||
|
|
||||||
\ Constants are quite simiar, except we don't bother with memory addresses:
|
\ Constants are quite simiar, except we don't bother with memory addresses:
|
||||||
100 constant WATER-BOILING-POINT \ ok
|
100 constant WATER-BOILING-POINT \ ok
|
||||||
|
Loading…
Reference in New Issue
Block a user