commit ec60e46240162695a6b9b514a15017218b18da81
parent b2e6f66fc262d185a9e0a1501f8d099f50248ecb
Author: Yuval Langer <yuvallangerontheroad@gmail.com>
Date: Thu, 5 Oct 2023 11:06:32 +0300
Fix arithmetic problems prompt bugs.
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/super-duper-yes-or-no.el b/super-duper-yes-or-no.el
@@ -244,7 +244,7 @@
(defun sd--make-arithmetic-problem-number ()
(sd--randint sd-arithmetic-problem-minimum
- (1+) sd-arithmetic-problem-maximum))
+ (1+ sd-arithmetic-problem-maximum)))
(defun sd--make-arithmetic-problem-arguments (argument-list)
(cond
@@ -256,7 +256,8 @@
(cdr argument-list))))
(t (cons (sd--make-arithmetic-problem
(car argument-list))
- (cdr argument-list)))))
+ (sd--make-arithmetic-problem-arguments
+ (cdr argument-list))))))
(defun sd--make-arithmetic-problem (arithmetic-expression-template)
(cond