Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
inker committed Jan 21, 2024
1 parent 3ac8055 commit 875cc59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/backtrack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ const backtrack = <C>(
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
}
Expand Down

0 comments on commit 875cc59

Please sign in to comment.