From fc8c6a429eafacb88097aaf3ec7de17871a14013 Mon Sep 17 00:00:00 2001 From: Calvin Rose Date: Sat, 20 May 2023 07:45:18 -0500 Subject: [PATCH] Modulo should not be variadic. --- src/boot/boot.janet | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/boot/boot.janet b/src/boot/boot.janet index bdd80f54..616c1e53 100644 --- a/src/boot/boot.janet +++ b/src/boot/boot.janet @@ -151,7 +151,7 @@ (defmacro -= "Decrements the var x by n." [x & ns] ~(set ,x (,- ,x ,;ns))) (defmacro *= "Shorthand for (set x (\\* x n))." [x & ns] ~(set ,x (,* ,x ,;ns))) (defmacro /= "Shorthand for (set x (/ x n))." [x & ns] ~(set ,x (,/ ,x ,;ns))) -(defmacro %= "Shorthand for (set x (% x n))." [x & ns] ~(set ,x (,% ,x ,;ns))) +(defmacro %= "Shorthand for (set x (% x n))." [x n] ~(set ,x (,% ,x ,n))) (defmacro assert "Throw an error if x is not truthy. Will not evaluate `err` if x is truthy."