# typeName: amend return type to string literal · gitcafe/zig

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

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

Visibility: public

Requested revision: 9be2f767417ef4eb69f35b67348bb3e2ec752d4a

Requested commit: 9be2f767417ef4eb69f35b67348bb3e2ec752d4a

Commit: 9be2f767417ef4eb69f35b67348bb3e2ec752d4a

Tree: ec3eb55e45146939458cf801ea07b78080ef81a6

Author: Daniele Cocca

Committer: Daniele Cocca

## Message

```
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.

```

## Parents

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

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