diff options
| author | Michael Williamson <mike@zwobble.org> | 2023-09-16 16:35:38 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2023-09-16 16:35:38 +0100 |
| commit | 02bd64dfdbfa8134cb93165ee606817b2e6737b5 (patch) | |
| tree | 9a2e463a79150fc90a1481b768c89b2158481dfc /examples | |
| parent | 904f02af5e2965f73b037e4b3c5d97f57af81987 (diff) | |
Combine assign, val and var statements
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/09-var/src/HelloWorld.shed | 2 | ||||
| -rw-r--r-- | examples/10-while/src/Counting.shed | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/09-var/src/HelloWorld.shed b/examples/09-var/src/HelloWorld.shed index ff8c1041..22f8a4ca 100644 --- a/examples/09-var/src/HelloWorld.shed +++ b/examples/09-var/src/HelloWorld.shed @@ -1,5 +1,5 @@ fun main() ! Io -> Unit { var message = "hello, "; - assign message := message + "world\n"; + assign message = message + "world\n"; print!(message); } diff --git a/examples/10-while/src/Counting.shed b/examples/10-while/src/Counting.shed index 8275fa0c..81d637a2 100644 --- a/examples/10-while/src/Counting.shed +++ b/examples/10-while/src/Counting.shed @@ -13,6 +13,6 @@ fun main() ! Io -> Unit { while (count != 4) { print!(message(count)); - assign count := count + 1; + assign count = count + 1; } } |
