# std.mem.indexOfPos should return start_index when needle length is zero \(\#10220\) · gitcafe/zig

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

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

Visibility: public

Requested revision: da7baf7daec175f63e336082d4bcada9ccf4d55c

Requested commit: da7baf7daec175f63e336082d4bcada9ccf4d55c

Commit: da7baf7daec175f63e336082d4bcada9ccf4d55c

Tree: 1cbc50980680185b05f8c1d9d58ff4d463c46cc4

Author: Fabio Arnold

Committer: GitHub

## Message

```
std.mem.indexOfPos should return start_index when needle length is zero (#10220)


Closes #10216

```

## Parents

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

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