authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2018-07-06 16:20:31-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2018-07-06 16:20:31-04:00
log6d793c0ea3679fe420199676e92e435c81617258
tree9f029e6730e405439c7eb77f074c97567d21a184
parent0e9fef78dd7e55626ab659cd12ca5ea37d633ea7

langref: add more internal links


1 files changed, 4 insertions(+), 4 deletions(-)

doc/langref.html.in+4-4
......@@ -679,7 +679,7 @@ fn divide(a: i32, b: i32) i32 {
679679 {#header_open|Float Literals#}
680680 <p>
681681 Float literals have type <code>comptime_float</code> which is guaranteed to hold at least all possible values
682 that the largest other floating point type can hold. Float literals implicitly cast to any other type.
682 that the largest other floating point type can hold. Float literals {#link|implicitly cast|Implicit Casts#} to any other type.
683683 </p>
684684 {#code_begin|syntax#}
685685const floating_point = 123.0E+77;
......@@ -1604,7 +1604,7 @@ test "variable alignment" {
16041604 }
16051605}
16061606 {#code_end#}
1607 <p>In the same way that a <code>*i32</code> can be implicitly cast to a
1607 <p>In the same way that a <code>*i32</code> can be {#link|implicitly cast|Implicit Casts#} to a
16081608 <code>*const i32</code>, a pointer with a larger alignment can be implicitly
16091609 cast to a pointer with a smaller alignment, but not vice versa.
16101610 </p>
......@@ -2968,7 +2968,7 @@ test "fn reflection" {
29682968 However right now it is hard coded to be a <code>u16</code>. See <a href="https://github.com/ziglang/zig/issues/786">#768</a>.
29692969 </p>
29702970 <p>
2971 You can implicitly cast an error from a subset to its superset:
2971 You can {#link|implicitly cast|Implicit Casts#} an error from a subset to its superset:
29722972 </p>
29732973 {#code_begin|test#}
29742974const std = @import("std");
......@@ -3101,7 +3101,7 @@ test "parse u64" {
31013101 <p>
31023102 Within the function definition, you can see some return statements that return
31033103 an error, and at the bottom a return statement that returns a <code>u64</code>.
3104 Both types implicitly cast to <code>error!u64</code>.
3104 Both types {#link|implicitly cast|Implicit Casts#} to <code>error!u64</code>.
31053105 </p>
31063106 <p>
31073107 What it looks like to use this function varies depending on what you're