From d9d307bc676387ab8894f9fb1ee722db8ecf7272 Mon Sep 17 00:00:00 2001 From: ubq323 Date: Thu, 11 Jul 2024 15:43:18 +0100 Subject: set -> set! --- tests/clos3.bth | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/clos3.bth') diff --git a/tests/clos3.bth b/tests/clos3.bth index 4742391..788307b 100644 --- a/tests/clos3.bth +++ b/tests/clos3.bth @@ -1,7 +1,7 @@ (defn (counter) (let (a 0) (fn () - (set a (+ a 1)) + (set! a (+ a 1)) (say a)))) (def c1 (counter)) (def c2 (counter)) -- cgit v1.2.3