aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authormarkfirmware <markfirmware@users.noreply.github.com>2019-06-08 23:49:50 -0400
committerAndrew Kelley <andrew@ziglang.org>2019-06-09 01:34:13 -0400
commit10e33b35368735d1911a073bcb7cbbaebee671ee (patch)
tree39e31355d891423bd4637b43cfaf530790f8d181 /doc
parentad064b4a0baca3a800e8f98f2f10e47e3d703cfb (diff)
downloadzig-10e33b35368735d1911a073bcb7cbbaebee671ee.tar.gz
zig-10e33b35368735d1911a073bcb7cbbaebee671ee.zip
grammar
Diffstat (limited to 'doc')
-rw-r--r--doc/langref.html.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/langref.html.in b/doc/langref.html.in
index e4f1346206..90c9d3518c 100644
--- a/doc/langref.html.in
+++ b/doc/langref.html.in
@@ -4698,7 +4698,7 @@ test "implicit casting to optionals wrapped in error union" {
{#code_end#}
{#header_close#}
{#header_open|Implicit Cast: Error Unions#}
- <p>The the payload type of an {#link|Error Union Type#} as well as the {#link|Error Set Type#}
+ <p>The payload type of an {#link|Error Union Type#} as well as the {#link|Error Set Type#}
implicitly cast to the error union type:
</p>
{#code_begin|test#}
@@ -4985,7 +4985,7 @@ fn eql_i32(a: i32, b: i32) bool {
return a == b;
}
{#code_end#}
- <p>Note that this is different than using a dummy value for the hash map value.
+ <p>Note that this is different from using a dummy value for the hash map value.
By using {#syntax#}void{#endsyntax#} as the type of the value, the hash map entry type has no value field, and
thus the hash map takes up less space. Further, all the code that deals with storing and loading the
value is deleted, as seen above.