# std.fmt: add bytesToHex\(\) to encode bytes as hex digits · gitcafe/zig

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

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

Visibility: public

Requested revision: 8da6b393fb6f34ba8cbe3efaf1dac4d459c05d5b

Requested commit: 8da6b393fb6f34ba8cbe3efaf1dac4d459c05d5b

Commit: 8da6b393fb6f34ba8cbe3efaf1dac4d459c05d5b

Tree: 890bdcd3a300fa12fbe3a1be75faeb8b95db87e8

Author: Frank Denis

Committer: Andrew Kelley

## Message

```
std.fmt: add bytesToHex() to encode bytes as hex digits

We already had `hexToBytes()`, but not the reverse operation
(at least not without using formatters).

```

## Parents

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

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