Skip to content

Commit

Permalink
Check colors before states
Browse files Browse the repository at this point in the history
  • Loading branch information
nickdrozd committed Aug 12, 2024
1 parent 61506f7 commit 9818538
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/reason.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ fn cant_reach(
continue;
};

if at_edge && state == next_state && tape.scan == next_color
if at_edge && tape.scan == next_color && state == next_state
{
return false;
}
Expand Down

0 comments on commit 9818538

Please sign in to comment.