mirror of
https://github.com/ziglang/zig.git
synced 2025-02-05 20:30:37 +00:00
doc/langref: mention that x is the sentinel in [N:x]T
Without looking at the example it is not possible to know whether N or x is the sentinel value. Fix it.
This commit is contained in:
parent
4d4852ad31
commit
2be12b24bc
@ -1818,7 +1818,7 @@ test "multidimensional arrays" {
|
||||
|
||||
{#header_open|Sentinel-Terminated Arrays#}
|
||||
<p>
|
||||
The syntax {#syntax#}[N:x]T{#endsyntax#} describes an array which has a sentinel element at the
|
||||
The syntax {#syntax#}[N:x]T{#endsyntax#} describes an array which has a sentinel element of value {#syntax#}x{#endsyntax#} at the
|
||||
index corresponding to {#syntax#}len{#endsyntax#}.
|
||||
</p>
|
||||
{#code_begin|test|null_terminated_array#}
|
||||
|
Loading…
Reference in New Issue
Block a user