# Fixed compile error when passing enum to fmt · gitcafe/zig

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

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

Visibility: public

Requested revision: 61c0c6d502b19a6aa232d91a201eba9d67aced5a

Requested commit: 61c0c6d502b19a6aa232d91a201eba9d67aced5a

Commit: 61c0c6d502b19a6aa232d91a201eba9d67aced5a

Tree: 2d5535b402165f0d664c0765ef1a5105fe45a11a

Author: tgschultz

Committer: GitHub

## Message

```
Fixed compile error when passing enum to fmt

Caused by struct printing behavior. Enums are different enough from structs and unions that the field iteration behavior doesn't do what we want even if @memberName didn't error on enums.
```

## Parents

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

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