# fmt: check for extra newline at end of file · gitcafe/zig

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

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

Visibility: public

Requested revision: 5942797000936394a7ed68806df56c02ca5d2b44

Requested commit: 5942797000936394a7ed68806df56c02ca5d2b44

Commit: 5942797000936394a7ed68806df56c02ca5d2b44

Tree: 3391f0e5b08b79c89103819ea561d123fdb9d808

Author: Shritesh Bhattarai

Committer: Andrew Kelley

## Message

```
fmt: check for extra newline at end of file

`anything_changed` checks if `source_index` == `source.len`
Fixes #2074

```

## Parents

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

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