diff options
| author | Matthew Lugg <mlugg@mlugg.co.uk> | 2024-11-01 01:43:08 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-01 01:43:08 +0000 |
| commit | 3f7fac5fff9beed535a7674679a5e2c1f3cd74d2 (patch) | |
| tree | c5f7affd52d47632874da1f533c888ef648e8304 /src/print_value.zig | |
| parent | a916bc7fdd3975a9e2ef13c44f814c71ce017193 (diff) | |
| parent | 24babde746621492c5111ffcd8edf575cb176d65 (diff) | |
| download | zig-3f7fac5fff9beed535a7674679a5e2c1f3cd74d2.tar.gz zig-3f7fac5fff9beed535a7674679a5e2c1f3cd74d2.zip | |
Merge pull request #21817 from mlugg/no-anon-structs
compiler: remove anonymous struct types, unify all tuples
Diffstat (limited to 'src/print_value.zig')
| -rw-r--r-- | src/print_value.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/print_value.zig b/src/print_value.zig index 9c06c6bcd8..06bd23d03c 100644 --- a/src/print_value.zig +++ b/src/print_value.zig @@ -74,7 +74,7 @@ pub fn print( .error_union_type, .simple_type, .struct_type, - .anon_struct_type, + .tuple_type, .union_type, .opaque_type, .enum_type, @@ -85,7 +85,7 @@ pub fn print( .undef => try writer.writeAll("undefined"), .simple_value => |simple_value| switch (simple_value) { .void => try writer.writeAll("{}"), - .empty_struct => try writer.writeAll(".{}"), + .empty_tuple => try writer.writeAll(".{}"), .generic_poison => try writer.writeAll("(generic poison)"), else => try writer.writeAll(@tagName(simple_value)), }, |
