0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00

typeName: amend return type to string literal

This was already the case, but the documentation failed to point out
that the returned value is of type `*const [N:0]u8`, i.e. that of a
string literal.

Also adds a behavioral test to assert that this is the case.
This commit is contained in:
Daniele Cocca 2021-04-28 01:13:47 +01:00 • committed by Daniele Cocca
commit 9be2f76741
2 changed files with 11 additions and 1 deletions