# langref: improve for loop documentation · gitcafe/zig

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

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

Visibility: public

Requested revision: 658b4db223c24616a95cdf3bb3226caa23a3b50e

Requested commit: 658b4db223c24616a95cdf3bb3226caa23a3b50e

Commit: 658b4db223c24616a95cdf3bb3226caa23a3b50e

Tree: cdc884e807b1e3d892739f48df7fb658d6ae1508

Author: Manlio Perillo

Committer: GitHub

## Message

```
langref: improve for loop documentation

- Add an example of iterating over consecutive integers using the
    range syntax
  - Add an example of iterating over multiple objects
  - Update the "nested break" and "nested continue" tests to use the
    range syntax, instead of a temporary array
```

## Parents

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

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