authorgravatar for cota@braap.orgEmilio G. Cota <cota@braap.org> 2020-01-11 16:59:19-05:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-01-13 11:49:46-05:00
log2be12b24bcafd4b2785d61dcfbaa27f9e3cc705d
treea29481485fac5a021978de303f8a208b66393e90
parent4d4852ad31aa373d85cc43eb8631474323300b57

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.

1 files changed, 1 insertions(+), 1 deletions(-)

doc/langref.html.in+1-1
...@@ -1818,7 +1818,7 @@ test "multidimensional arrays" {...@@ -1818,7 +1818,7 @@ test "multidimensional arrays" {
18181818
1819 {#header_open|Sentinel-Terminated Arrays#}1819 {#header_open|Sentinel-Terminated Arrays#}
1820 <p>1820 <p>
1821 The syntax {#syntax#}[N:x]T{#endsyntax#} describes an array which has a sentinel element at the1821 The syntax {#syntax#}[N:x]T{#endsyntax#} describes an array which has a sentinel element of value {#syntax#}x{#endsyntax#} at the
1822 index corresponding to {#syntax#}len{#endsyntax#}.1822 index corresponding to {#syntax#}len{#endsyntax#}.
1823 </p>1823 </p>
1824 {#code_begin|test|null_terminated_array#}1824 {#code_begin|test|null_terminated_array#}