From 02bd64dfdbfa8134cb93165ee606817b2e6737b5 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sat, 16 Sep 2023 16:35:38 +0100 Subject: Combine assign, val and var statements --- examples/09-var/src/HelloWorld.shed | 2 +- examples/10-while/src/Counting.shed | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'examples') 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; } } -- cgit v1.2.3