aboutsummaryrefslogtreecommitdiff
path: root/src/Autodoc.zig
diff options
context:
space:
mode:
authorVeikka Tuominen <git@vexu.eu>2022-12-18 19:33:15 +0200
committerGitHub <noreply@github.com>2022-12-18 19:33:15 +0200
commit40ed6ae8469fd599f0524d294f38365c3bb8a825 (patch)
tree6e37bbb58fef1ca3aae06e65e179dfa017cb7929 /src/Autodoc.zig
parente9e804edc899d8392c9f93a19b92be603c26df79 (diff)
parent2a5e1426aa9469fadb78e837d0100d689213b034 (diff)
downloadzig-40ed6ae8469fd599f0524d294f38365c3bb8a825.tar.gz
zig-40ed6ae8469fd599f0524d294f38365c3bb8a825.zip
Merge pull request #13930 from r00ster91/renamings
std.builtin: renamings
Diffstat (limited to 'src/Autodoc.zig')
-rw-r--r--src/Autodoc.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Autodoc.zig b/src/Autodoc.zig
index 55ff048482..246b97037a 100644
--- a/src/Autodoc.zig
+++ b/src/Autodoc.zig
@@ -637,9 +637,9 @@ const DocData = struct {
inline for (comptime std.meta.fields(Type)) |case| {
if (@field(Type, case.name) == active_tag) {
const current_value = @field(self, case.name);
- inline for (comptime std.meta.fields(case.field_type)) |f| {
+ inline for (comptime std.meta.fields(case.type)) |f| {
try jsw.arrayElem();
- if (f.field_type == std.builtin.Type.Pointer.Size) {
+ if (f.type == std.builtin.Type.Pointer.Size) {
try jsw.emitNumber(@enumToInt(@field(current_value, f.name)));
} else {
try std.json.stringify(@field(current_value, f.name), opts, w);