authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-08-14 09:33:45-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-08-14 09:33:45-07:00
log4adc052f0b8fbb5c3f5ac06cc92d2fc9bd7e409e
treebd955a00aa000d6ba49977688d43cb746a0d6ca1
parent28a9da8bfc1a791e0eaf8c643827da88ea70f7d1

langref: fix html error

thanks tidy

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

doc/langref.html.in+1-1
......@@ -5142,11 +5142,11 @@ test "float widening" {
51425142 <p>
51435143 A compiler error is appropriate because this ambiguous expression leaves the compiler
51445144 two choices about the coercion.
5145 </p>
51455146 <ul>
51465147 <li> Cast {#syntax#}54.0{#endsyntax#} to {#syntax#}comptime_int{#endsyntax#} resulting in {#syntax#}@as(comptime_int, 10){#endsyntax#}, which is casted to {#syntax#}@as(f32, 10){#endsyntax#}</li>
51475148 <li> Cast {#syntax#}5{#endsyntax#} to {#syntax#}comptime_float{#endsyntax#} resulting in {#syntax#}@as(comptime_float, 10.8){#endsyntax#}, which is casted to {#syntax#}@as(f32, 10.8){#endsyntax#}</li>
51485149 </ul>
5149 </p>
51505150 {#code_begin|test_err#}
51515151// Compile time coercion of float to int
51525152test "implicit cast to comptime_int" {