Skip to content

Commit

Permalink
docs: this statement was in the wrong section
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewrk committed Nov 29, 2019
1 parent 2ab7f31 commit a438a61
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions doc/langref.html.in
Original file line number Diff line number Diff line change
Expand Up @@ -7455,6 +7455,10 @@ fn add(a: i32, b: i32) i32 { return a + b; }
Attempting to convert a number which is out of range of the destination type results in
safety-protected {#link|Undefined Behavior#}.
</p>
<p>
If {#syntax#}T{#endsyntax#} is {#syntax#}comptime_int{#endsyntax#},
then this is semantically equivalent to {#link|Type Coercion#}.
</p>
{#header_close#}

{#header_open|@intToEnum#}
Expand Down Expand Up @@ -8206,10 +8210,6 @@ test "integer truncation" {
This function always truncates the significant bits of the integer, regardless
of endianness on the target platform.
</p>
<p>
If {#syntax#}T{#endsyntax#} is {#syntax#}comptime_int{#endsyntax#},
then this is semantically equivalent to {#link|Type Coercion#}.
</p>
{#header_close#}

{#header_open|@Type#}
Expand Down

0 comments on commit a438a61

Please sign in to comment.