Skip to content

Commit

Permalink
fix typo in error message
Browse files Browse the repository at this point in the history
  • Loading branch information
pwbh committed Aug 24, 2024
1 parent ea79d18 commit 2ab3fc5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/root.zig
Original file line number Diff line number Diff line change
Expand Up @@ -128,15 +128,15 @@ pub fn Ymlz(comptime Destination: type) type {
@field(destination, field.name) = try self.parseArrayExpression(typeInfo.Pointer.child, depth + 1);
} else {
std.debug.print("Type info: {any}\n", .{@typeInfo([]const u8)});
@panic("unexpeted type recieved - " ++ @typeName(field.type) ++ "\n");
@panic("unexpected type recieved - " ++ @typeName(field.type) ++ "\n");
}
},
.Struct => {
@field(destination, field.name) = try self.parse(field.type, depth + 1);
},
else => {
std.debug.print("Type info: {any}\n", .{@typeInfo([]const u8)});
@panic("unexpeted type recieved - " ++ @typeName(field.type) ++ "\n");
@panic("unexpected type recieved - " ++ @typeName(field.type) ++ "\n");
},
}
}
Expand Down

0 comments on commit 2ab3fc5

Please sign in to comment.