File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1- zig-cache /
1+ . zig-cache /
22zig-out /
Original file line number Diff line number Diff line change @@ -104,12 +104,12 @@ const TypeId = enum(usize) {
104104
105105fn 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 }
You can’t perform that action at this time.
0 commit comments