diff options
| author | Tristan Ross <tristan.ross@midstall.com> | 2024-02-18 18:28:39 -0800 |
|---|---|---|
| committer | Tristan Ross <tristan.ross@midstall.com> | 2024-03-11 07:09:07 -0700 |
| commit | 099f3c4039d5702b073639ef8b55881973b71c80 (patch) | |
| tree | 2be1bb7abc86fb4c9148b82314718eac6a01e895 /lib/std/meta.zig | |
| parent | d0c06ca7127110a8afeb0ef524a197049892db21 (diff) | |
| download | zig-099f3c4039d5702b073639ef8b55881973b71c80.tar.gz zig-099f3c4039d5702b073639ef8b55881973b71c80.zip | |
std.builtin: make container layout fields lowercase
Diffstat (limited to 'lib/std/meta.zig')
| -rw-r--r-- | lib/std/meta.zig | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/std/meta.zig b/lib/std/meta.zig index 66388aebf6..f7b418d71d 100644 --- a/lib/std/meta.zig +++ b/lib/std/meta.zig @@ -269,12 +269,12 @@ test containerLayout { a: u8, }; - try testing.expect(containerLayout(S1) == .Auto); - try testing.expect(containerLayout(S2) == .Packed); - try testing.expect(containerLayout(S3) == .Extern); - try testing.expect(containerLayout(U1) == .Auto); - try testing.expect(containerLayout(U2) == .Packed); - try testing.expect(containerLayout(U3) == .Extern); + try testing.expect(containerLayout(S1) == .auto); + try testing.expect(containerLayout(S2) == .@"packed"); + try testing.expect(containerLayout(S3) == .@"extern"); + try testing.expect(containerLayout(U1) == .auto); + try testing.expect(containerLayout(U2) == .@"packed"); + try testing.expect(containerLayout(U3) == .@"extern"); } /// Instead of this function, prefer to use e.g. `@typeInfo(foo).Struct.decls` @@ -1025,7 +1025,7 @@ fn CreateUniqueTuple(comptime N: comptime_int, comptime types: [N]type) type { return @Type(.{ .Struct = .{ .is_tuple = true, - .layout = .Auto, + .layout = .auto, .decls = &.{}, .fields = &tuple_fields, }, |
