# Package.Hash.toSlice: consistent pointer · gitcafe/zig

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

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

Visibility: public

Requested revision: 8f7fc63847fd2c2334a13e5dce564942146120c7

Requested commit: 8f7fc63847fd2c2334a13e5dce564942146120c7

Commit: 8f7fc63847fd2c2334a13e5dce564942146120c7

Tree: 6a3cec32ca9aec31c8a0d4c986dc63d6bd7e2856

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
Package.Hash.toSlice: consistent pointer

Makes the returned pointer always point inside `Hash.bytes` even when it
is length zero.

```

## Parents

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

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