# zig fmt: Resolve \#11131 loss of comment on switch cases · gitcafe/zig

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

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

Visibility: public

Requested revision: 3bb4c0c78978a80a3e441552591f0209f032bfc7

Requested commit: 3bb4c0c78978a80a3e441552591f0209f032bfc7

Commit: 3bb4c0c78978a80a3e441552591f0209f032bfc7

Tree: 906e35ba6c225d41df1f22e992e58c8b087dd2cc

Author: Curtis Tate Wilkinson

Committer: GitHub

## Message

```
zig fmt: Resolve #11131 loss of comment on switch cases

Correct switch cases dropping comments in certain situations by
checking for the presence of the comment before collapsing to one line.
```

## Parents

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

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