From 6d793c0ea3679fe420199676e92e435c81617258 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Fri, 6 Jul 2018 16:20:31 -0400 Subject: [PATCH] langref: add more internal links --- 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 3cdcdc6e8..5c1cc130a 100644 --- a/doc/langref.html.in +++ b/doc/langref.html.in @@ -679,7 +679,7 @@ fn divide(a: i32, b: i32) i32 { {#header_open|Float Literals#}

Float literals have type comptime_float which is guaranteed to hold at least all possible values - that the largest other floating point type can hold. Float literals implicitly cast to any other type. + that the largest other floating point type can hold. Float literals {#link|implicitly cast|Implicit Casts#} to any other type.

{#code_begin|syntax#} const floating_point = 123.0E+77; @@ -1604,7 +1604,7 @@ test "variable alignment" { } } {#code_end#} -

In the same way that a *i32 can be implicitly cast to a +

In the same way that a *i32 can be {#link|implicitly cast|Implicit Casts#} to a *const i32, a pointer with a larger alignment can be implicitly cast to a pointer with a smaller alignment, but not vice versa.

@@ -2968,7 +2968,7 @@ test "fn reflection" { However right now it is hard coded to be a u16. See #768.

- You can implicitly cast an error from a subset to its superset: + You can {#link|implicitly cast|Implicit Casts#} an error from a subset to its superset:

{#code_begin|test#} const std = @import("std"); @@ -3101,7 +3101,7 @@ test "parse u64" {

Within the function definition, you can see some return statements that return an error, and at the bottom a return statement that returns a u64. - Both types implicitly cast to error!u64. + Both types {#link|implicitly cast|Implicit Casts#} to error!u64.

What it looks like to use this function varies depending on what you're