From a438a615e6e2ef9e49bf10405b3ba6c8814ccf4b Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Fri, 29 Nov 2019 12:41:07 -0500 Subject: [PATCH] docs: this statement was in the wrong section --- doc/langref.html.in | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/langref.html.in b/doc/langref.html.in index 8c118cf3b2..b742119af7 100644 --- a/doc/langref.html.in +++ b/doc/langref.html.in @@ -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#}.

+

+ If {#syntax#}T{#endsyntax#} is {#syntax#}comptime_int{#endsyntax#}, + then this is semantically equivalent to {#link|Type Coercion#}. +

{#header_close#} {#header_open|@intToEnum#} @@ -8206,10 +8210,6 @@ test "integer truncation" { This function always truncates the significant bits of the integer, regardless of endianness on the target platform.

-

- If {#syntax#}T{#endsyntax#} is {#syntax#}comptime_int{#endsyntax#}, - then this is semantically equivalent to {#link|Type Coercion#}. -

{#header_close#} {#header_open|@Type#}