# std.fs.path.extension: add additional API guarantee · gitcafe/zig

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

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

Visibility: public

Requested revision: a6de0b413675717886a4d7fe1d00db10d802a191

Requested commit: a6de0b413675717886a4d7fe1d00db10d802a191

Commit: a6de0b413675717886a4d7fe1d00db10d802a191

Tree: 89a4ff271abd2d0bc0b45499b5cf6adcfb77dc84

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std.fs.path.extension: add additional API guarantee

Added:

The returned slice is guaranteed to have its pointer
within the start and end pointer address range of `path`,
even if it is length zero.

```

## Parents

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

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