# fix std.mem.span handling of sentinel-terminated arrays · gitcafe/zig

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

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

Visibility: public

Requested revision: 6c2b23593b97aef6f375bd7d81beeaf0f66f5682

Requested commit: 6c2b23593b97aef6f375bd7d81beeaf0f66f5682

Commit: 6c2b23593b97aef6f375bd7d81beeaf0f66f5682

Tree: 928e581db83b81c6799063335c2ce605e308f7b1

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
fix std.mem.span handling of sentinel-terminated arrays

previously this function would use the array length, but now it scans
the array looking for the first sentinel that occurs.

```

## Parents

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

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