| ... | @@ -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, and | 4989 | 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 the | 4990 | 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. |