# tar: rename reader to iterator · gitcafe/zig

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

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

Visibility: public

Requested revision: 7923a53996f8d24ad27823db3a45a6dd4a2bf317

Requested commit: 7923a53996f8d24ad27823db3a45a6dd4a2bf317

Commit: 7923a53996f8d24ad27823db3a45a6dd4a2bf317

Tree: fed74f66e4b311f1dfbf9a235ab957e529da511f

Author: Igor Anić

Committer: Andrew Kelley

## Message

```
tar: rename reader to iterator

Itarator has `next` function, iterates over tar files. When using from
outside of module with `tar.` prefix makes more sense.

var iter = tar.iterator(reader, null);
while (try iter.next()) |file| {
...
}

```

## Parents

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

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