From 875cc59c19b191af3f5ceced3e9804c56dfb63c1 Mon Sep 17 00:00:00 2001 From: Anton Veselev Date: Sun, 21 Jan 2024 16:14:00 +0000 Subject: [PATCH] upd --- src/utils/backtrack.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/backtrack.ts b/src/utils/backtrack.ts index 0c82cc75..26c4c1e6 100644 --- a/src/utils/backtrack.ts +++ b/src/utils/backtrack.ts @@ -14,8 +14,8 @@ const backtrack = ( if (options.accept(candidate)) { return candidate } - for (const c of options.generate(candidate)) { - const result = backtrack(c, options) + for (const newCandidate of options.generate(candidate)) { + const result = backtrack(newCandidate, options) if (result !== undefined) { return result }