diff options
| author | Daniele Cocca <daniele.cocca@gmail.com> | 2021-04-28 01:00:32 +0100 |
|---|---|---|
| committer | Daniele Cocca <dcocca@google.com> | 2021-06-16 22:02:52 +0100 |
| commit | 171102ea7ca3a11113d2ccfb7206b0eaddab19ac (patch) | |
| tree | e86fc48c104325a4ba2df95a7fb900872278e254 /doc | |
| parent | 00e1c0082c7c3cee377cc4e31b205c26f8943419 (diff) | |
| download | zig-171102ea7ca3a11113d2ccfb7206b0eaddab19ac.tar.gz zig-171102ea7ca3a11113d2ccfb7206b0eaddab19ac.zip | |
errorName: return a null-terminated slice
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/langref.html.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/langref.html.in b/doc/langref.html.in index fcf07eb6c1..c7a677bb8e 100644 --- a/doc/langref.html.in +++ b/doc/langref.html.in @@ -7475,7 +7475,7 @@ test "main" { {#header_close#} {#header_open|@errorName#} - <pre>{#syntax#}@errorName(err: anyerror) []const u8{#endsyntax#}</pre> + <pre>{#syntax#}@errorName(err: anyerror) [:0]const u8{#endsyntax#}</pre> <p> This function returns the string representation of an error. The string representation of {#syntax#}error.OutOfMem{#endsyntax#} is {#syntax#}"OutOfMem"{#endsyntax#}. |
