# std: eliminate pointless meta.assumeSentinel\(\) usage · gitcafe/zig

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

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

Visibility: public

Requested revision: faf2fd18d33de246c5bb03905f25290108e1dd30

Requested commit: faf2fd18d33de246c5bb03905f25290108e1dd30

Commit: faf2fd18d33de246c5bb03905f25290108e1dd30

Tree: 76549a3a52ed3d3dac3fd8f62d92a1e90e95c721

Author: Isaac Freund

Committer: Isaac Freund

## Message

```
std: eliminate pointless meta.assumeSentinel() usage

This fixes a bug in std.net caused during the introduction of
meta.assumeSentinel due to the unfortunate semantics of mem.span()

This leaves only 3 remaining uses of meta.assumeSentinel() in the
standard library, each of which could be a simple @ptrCast([*:0]T, foo)
instead. I think this function should likely be removed.

```

## Parents

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

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