# std.mem: use for loop instead of while in indexOf\* to reduce bound checking · gitcafe/zig

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

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

Visibility: public

Requested revision: 599641357cda1ff86ebc515d0761f98fb8c507a8

Requested commit: 599641357cda1ff86ebc515d0761f98fb8c507a8

Commit: 599641357cda1ff86ebc515d0761f98fb8c507a8

Tree: 0bcbb3e266786f674f22bc7b515b902143819950

Author: Karl Seguin

Committer: GitHub

## Message

```
std.mem: use for loop instead of while in indexOf* to reduce bound checking


```

## Parents

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

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