diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-09-29 00:27:48 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-09-29 00:27:48 -0700 |
| commit | 750b00c642782127736eb378ec9583db2d680bb6 (patch) | |
| tree | 095ef980bdd7cdaeffaa2277be775b2cb1e4a2f2 /doc | |
| parent | fa6d150441d1d8679a77c5e9a6071fa952851376 (diff) | |
| parent | a0c0f9ead53dab4f558dbb51cc8a49961fc6984f (diff) | |
| download | zig-750b00c642782127736eb378ec9583db2d680bb6.tar.gz zig-750b00c642782127736eb378ec9583db2d680bb6.zip | |
Merge remote-tracking branch 'origin/master' into stage2-zig-cc
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/langref.html.in | 25 |
1 files changed, 9 insertions, 16 deletions
diff --git a/doc/langref.html.in b/doc/langref.html.in index 870764f054..22faf7fd8f 100644 --- a/doc/langref.html.in +++ b/doc/langref.html.in @@ -1841,7 +1841,7 @@ const Point = struct { y: i32, }; -test "compile-time array initalization" { +test "compile-time array initialization" { assert(fancy_array[4].x == 4); assert(fancy_array[4].y == 8); } @@ -8468,30 +8468,23 @@ test "integer truncation" { <li>{#syntax#}@TypeOf(null){#endsyntax#}</li> <li>{#link|Arrays#}</li> <li>{#link|Optionals#}</li> + <li>{#link|Error Set Type#}</li> <li>{#link|Error Union Type#}</li> <li>{#link|Vectors#}</li> <li>{#link|Opaque Types#}</li> - <li>AnyFrame</li> - </ul> - <p> - For these types it is a - <a href="https://github.com/ziglang/zig/issues/2907">TODO in the compiler to implement</a>: - </p> - <ul> - <li>ErrorSet</li> - <li>Enum</li> - <li>FnFrame</li> - <li>EnumLiteral</li> + <li>{#link|@Frame#}</li> + <li>{#syntax#}anyframe{#endsyntax#}</li> + <li>{#link|struct#}</li> + <li>{#link|enum#}</li> + <li>{#link|Enum Literals#}</li> + <li>{#link|union#}</li> </ul> <p> - For these types, {#syntax#}@Type{#endsyntax#} is not available. - <a href="https://github.com/ziglang/zig/issues/383">There is an open proposal to allow unions and structs</a>. + For these types, {#syntax#}@Type{#endsyntax#} is not available: </p> <ul> - <li>{#link|union#}</li> <li>{#link|Functions#}</li> <li>BoundFn</li> - <li>{#link|struct#}</li> </ul> {#header_close#} {#header_open|@typeInfo#} |
