aboutsummaryrefslogtreecommitdiff
path: root/src/type.zig
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2020-12-13 22:12:28 +1100
committerAndrew Kelley <andrew@ziglang.org>2021-01-01 15:48:46 -0700
commit9c97a07f18413fb0a535bc89ea9aecd1656cda6a (patch)
tree95952ace758a0938eeed0347d366f71931e0e8c3 /src/type.zig
parent73bf2e1525a392d367525ef96196fe15b14d8c30 (diff)
downloadzig-9c97a07f18413fb0a535bc89ea9aecd1656cda6a.tar.gz
zig-9c97a07f18413fb0a535bc89ea9aecd1656cda6a.zip
std: have std.meta.fieldInfo take an enum rather than a string
Diffstat (limited to 'src/type.zig')
-rw-r--r--src/type.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/type.zig b/src/type.zig
index 7d35200727..bb2e3b3bc2 100644
--- a/src/type.zig
+++ b/src/type.zig
@@ -3232,7 +3232,7 @@ pub const Type = extern union {
}
pub fn Data(comptime t: Tag) type {
- return std.meta.fieldInfo(t.Type(), "data").field_type;
+ return std.meta.fieldInfo(t.Type(), .data).field_type;
}
};