From aac2d6b56f32134ea32fb3d984e3fcdfddd8aaf6 Mon Sep 17 00:00:00 2001 From: r00ster91 Date: Tue, 13 Dec 2022 22:30:06 +0100 Subject: std.builtin: rename Type.UnionField and Type.StructField's field_type to type --- doc/langref.html.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/langref.html.in b/doc/langref.html.in index f93505fbfe..4a927ed17d 100644 --- a/doc/langref.html.in +++ b/doc/langref.html.in @@ -4253,7 +4253,7 @@ fn isFieldOptional(comptime T: type, field_index: usize) !bool { return switch (field_index) { // This prong is analyzed `fields.len - 1` times with `idx` being an // unique comptime-known value each time. - inline 0...fields.len - 1 => |idx| @typeInfo(fields[idx].field_type) == .Optional, + inline 0...fields.len - 1 => |idx| @typeInfo(fields[idx].type) == .Optional, else => return error.IndexOutOfBounds, }; } -- cgit v1.2.3