| author | |
| committer | |
| log | c10d93ac2e9bbd9c38d726864f724c61c9abf347 |
| tree | 37320b4575860abd7b847e1ac56afce89e8fca37 |
| parent | 849860a0e6c3029353d476decb8d220bb7cc5389 |
1 files changed, 1 insertions(+), 1 deletions(-)
yaml.zig+1-1| ... | ... | @@ -104,7 +104,7 @@ pub const Mapping = struct { |
| 104 | 104 | return null; |
| 105 | 105 | } |
| 106 | 106 | |
| 107 | pub fn getT(self: Mapping, k: string, comptime f: std.meta.FieldEnum(Value)) ?extras.FieldType(Value, f) { | |
| 107 | pub fn getT(self: Mapping, k: string, comptime f: std.meta.FieldEnum(Value)) ?std.meta.FieldType(Value, f) { | |
| 108 | 108 | for (self.items) |item| { |
| 109 | 109 | if (std.mem.eql(u8, item.key, k)) { |
| 110 | 110 | return @field(item.value, @tagName(f)); |