Skip to content

Commit a438a61

Browse files
committed
docs: this statement was in the wrong section
1 parent 2ab7f31 commit a438a61

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/langref.html.in

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7455,6 +7455,10 @@ fn add(a: i32, b: i32) i32 { return a + b; }
74557455
Attempting to convert a number which is out of range of the destination type results in
74567456
safety-protected {#link|Undefined Behavior#}.
74577457
</p>
7458+
<p>
7459+
If {#syntax#}T{#endsyntax#} is {#syntax#}comptime_int{#endsyntax#},
7460+
then this is semantically equivalent to {#link|Type Coercion#}.
7461+
</p>
74587462
{#header_close#}
74597463

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

82158215
{#header_open|@Type#}

0 commit comments

Comments
 (0)