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

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

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

Visibility: public

Requested revision: 52bc1442d6e48438a1f8fb155a4174e41d02090f

Requested commit: 52bc1442d6e48438a1f8fb155a4174e41d02090f

Commit: 52bc1442d6e48438a1f8fb155a4174e41d02090f

Tree: 5c377ae9f1316e1ebd12c2efbe605e8d4fdb1235

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

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

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