From 2ab3fc58a4951b510517269b8bcadf46137f2317 Mon Sep 17 00:00:00 2001 From: pwbh Date: Sat, 24 Aug 2024 16:41:34 +0300 Subject: [PATCH] fix typo in error message --- src/root.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/root.zig b/src/root.zig index ccc0386..ddc62e4 100644 --- a/src/root.zig +++ b/src/root.zig @@ -128,7 +128,7 @@ 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 => { @@ -136,7 +136,7 @@ pub fn Ymlz(comptime Destination: type) type { }, 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"); }, } }