Skip to content

Commit 4f4fcf7

Browse files
committed
Update std.builtin.Type field names
See: ziglang/zig#21225
1 parent 8e598e4 commit 4f4fcf7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

any-pointer.zig

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,12 +104,12 @@ const TypeId = enum(usize) {
104104

105105
fn assertPointer(comptime T: type) void {
106106
comptime var ti: std.builtin.Type = @typeInfo(T);
107-
if (ti == .Optional) {
108-
ti = @typeInfo(ti.Optional.child);
107+
if (ti == .optional) {
108+
ti = @typeInfo(ti.optional.child);
109109
}
110-
if (ti != .Pointer)
110+
if (ti != .pointer)
111111
@compileError("any-pointer only works with (optional) pointers to one or many.");
112-
switch (ti.Pointer.size) {
112+
switch (ti.pointer.size) {
113113
.One, .Many, .C => {},
114114
else => @compileError("any-pointer only works with (optional) pointers to one or many."),
115115
}

0 commit comments

Comments
 (0)