# astgen: fix crash looking for wrong token in error sets · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/39957832071cd999d6abc16c91e12c4820a2a738)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 39957832071cd999d6abc16c91e12c4820a2a738

Requested commit: 39957832071cd999d6abc16c91e12c4820a2a738

Commit: 39957832071cd999d6abc16c91e12c4820a2a738

Tree: 3a7afa14fcfdcaf4f07acca0f52e5e545e8f6708

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
astgen: fix crash looking for wrong token in error sets

Fixes a regression from #7920.

```

## Parents

- [ad3f7e0cf0d4176bfc60b15b47562bd1a8adb666](https://git.cafe/gitcafe/zig/commit/ad3f7e0cf0d4176bfc60b15b47562bd1a8adb666?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/39957832071cd999d6abc16c91e12c4820a2a738?format=markdown)
