aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2020-08-14 09:33:45 -0700
committerAndrew Kelley <andrew@ziglang.org>2020-08-14 09:33:45 -0700
commit4adc052f0b8fbb5c3f5ac06cc92d2fc9bd7e409e (patch)
treebd955a00aa000d6ba49977688d43cb746a0d6ca1 /doc
parent28a9da8bfc1a791e0eaf8c643827da88ea70f7d1 (diff)
downloadzig-4adc052f0b8fbb5c3f5ac06cc92d2fc9bd7e409e.tar.gz
zig-4adc052f0b8fbb5c3f5ac06cc92d2fc9bd7e409e.zip
langref: fix html error
thanks tidy
Diffstat (limited to 'doc')
-rw-r--r--doc/langref.html.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/langref.html.in b/doc/langref.html.in
index 4c6284ac43..7bb45c01ce 100644
--- a/doc/langref.html.in
+++ b/doc/langref.html.in
@@ -5142,11 +5142,11 @@ test "float widening" {
<p>
A compiler error is appropriate because this ambiguous expression leaves the compiler
two choices about the coercion.
+ </p>
<ul>
<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>
<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>
</ul>
- </p>
{#code_begin|test_err#}
// Compile time coercion of float to int
test "implicit cast to comptime_int" {