aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2018-06-19 11:46:32 -0400
committerGitHub <noreply@github.com>2018-06-19 11:46:32 -0400
commit85422d7aeadc453ec621d0624f394c3f4e3f619f (patch)
treea079e4ca9620ca618b7c0e09aa8e99df1e2a4ae5 /doc
parent9f2324389d4aec5d38e840ab09fd9af558a77913 (diff)
parent811539f8ee88366fea744ecfe251413b5dd774cc (diff)
downloadzig-85422d7aeadc453ec621d0624f394c3f4e3f619f.tar.gz
zig-85422d7aeadc453ec621d0624f394c3f4e3f619f.zip
Merge pull request #1136 from alexnask/typeinfo_improvements
@typeInfo now uses optional types instead of @typeOf(undefined)
Diffstat (limited to 'doc')
-rw-r--r--doc/langref.html.in10
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/langref.html.in b/doc/langref.html.in
index 19f023f6e1..7a9355747f 100644
--- a/doc/langref.html.in
+++ b/doc/langref.html.in
@@ -5755,7 +5755,7 @@ pub const TypeInfo = union(TypeId) {
pub const Union = struct {
layout: ContainerLayout,
- tag_type: type,
+ tag_type: ?type,
fields: []UnionField,
defs: []Definition,
};
@@ -5772,20 +5772,20 @@ pub const TypeInfo = union(TypeId) {
pub const FnArg = struct {
is_generic: bool,
is_noalias: bool,
- arg_type: type,
+ arg_type: ?type,
};
pub const Fn = struct {
calling_convention: CallingConvention,
is_generic: bool,
is_var_args: bool,
- return_type: type,
- async_allocator_type: type,
+ return_type: ?type,
+ async_allocator_type: ?type,
args: []FnArg,
};
pub const Promise = struct {
- child: type,
+ child: ?type,
};
pub const Definition = struct {