authorgravatar for markfirmware@users.noreply.github.commarkfirmware <markfirmware@users.noreply.github.com> 2019-06-08 23:49:50-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-06-09 01:34:13-04:00
log10e33b35368735d1911a073bcb7cbbaebee671ee
tree39e31355d891423bd4637b43cfaf530790f8d181
parentad064b4a0baca3a800e8f98f2f10e47e3d703cfb

grammar


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

doc/langref.html.in+2-2
...@@ -4698,7 +4698,7 @@ test "implicit casting to optionals wrapped in error union" {...@@ -4698,7 +4698,7 @@ test "implicit casting to optionals wrapped in error union" {
4698 {#code_end#}4698 {#code_end#}
4699 {#header_close#}4699 {#header_close#}
4700 {#header_open|Implicit Cast: Error Unions#}4700 {#header_open|Implicit Cast: Error Unions#}
4701 <p>The the payload type of an {#link|Error Union Type#} as well as the {#link|Error Set Type#}4701 <p>The payload type of an {#link|Error Union Type#} as well as the {#link|Error Set Type#}
4702 implicitly cast to the error union type:4702 implicitly cast to the error union type:
4703 </p>4703 </p>
4704 {#code_begin|test#}4704 {#code_begin|test#}
...@@ -4985,7 +4985,7 @@ fn eql_i32(a: i32, b: i32) bool {...@@ -4985,7 +4985,7 @@ fn eql_i32(a: i32, b: i32) bool {
4985 return a == b;4985 return a == b;
4986}4986}
4987 {#code_end#}4987 {#code_end#}
4988 <p>Note that this is different than using a dummy value for the hash map value.4988 <p>Note that this is different from using a dummy value for the hash map value.
4989 By using {#syntax#}void{#endsyntax#} as the type of the value, the hash map entry type has no value field, and4989 By using {#syntax#}void{#endsyntax#} as the type of the value, the hash map entry type has no value field, and
4990 thus the hash map takes up less space. Further, all the code that deals with storing and loading the4990 thus the hash map takes up less space. Further, all the code that deals with storing and loading the
4991 value is deleted, as seen above.4991 value is deleted, as seen above.