# Fix fmt.zig handling of slices of slices · gitcafe/zig

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

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

Visibility: public

Requested revision: 8eaf1387c712c62e96fa165ac3390c8f8f924daa

Requested commit: 8eaf1387c712c62e96fa165ac3390c8f8f924daa

Commit: 8eaf1387c712c62e96fa165ac3390c8f8f924daa

Tree: bdf7b260a2103437fea29355d0dd779504aa5dc0

Author: tgschultz

Committer: Andrew Kelley

## Message

```
Fix fmt.zig handling of slices of slices

Discovered while calling testing.expectError on an error union with payload [][]const u8. Even though the payload was not going to be printed, the current format handling caused a compile error anyway because it couldn't be casted to []const u8. The new handling treats a []u8 as a string but otherwise treats the slice as a pointer.
```

## Parents

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

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