| author | |
| committer | |
| log | 8127321574b414e85cbe66251780fb3760bd110d |
| tree | b00b0fb7e57251d06e839d83e7f75e4ef0182ab1 |
| parent | fbf3642e7a9e354e2f48751b69ae1c41c0d7b062 |
| signature |
2 files changed, 2 insertions(+), 2 deletions(-)
README.md+1-1| ... | @@ -3,7 +3,7 @@ | ... | @@ -3,7 +3,7 @@ |
| 3 |  | 3 |  |
| 4 | [](https://github.com/nektro/zig-yaml/blob/master/LICENSE) | 4 | [](https://github.com/nektro/zig-yaml/blob/master/LICENSE) |
| 5 | [](https://github.com/sponsors/nektro) | 5 | [](https://github.com/sponsors/nektro) |
| 6 | [](https://ziglang.org/) | 6 | [](https://ziglang.org/) |
| 7 | [](https://github.com/nektro/zigmod) | 7 | [](https://github.com/nektro/zigmod) |
| 8 | 8 | ||
| 9 | Zig bindings for [libyaml](https://github.com/yaml/libyaml). | 9 | Zig bindings for [libyaml](https://github.com/yaml/libyaml). |
yaml.zig+1-1| ... | @@ -375,7 +375,7 @@ fn get_event_string(event: Token, p: *const Parser) ![:0]u8 { | ... | @@ -375,7 +375,7 @@ fn get_event_string(event: Token, p: *const Parser) ![:0]u8 { |
| 375 | errdefer list.deinit(); | 375 | errdefer list.deinit(); |
| 376 | var i = sm.line + 1; | 376 | var i = sm.line + 1; |
| 377 | while (i < em.line) : (i += 1) { | 377 | while (i < em.line) : (i += 1) { |
| 378 | try list.appendSlice(std.mem.trimLeft(u8, lines[i], " ")); | 378 | try list.appendSlice(std.mem.trimStart(u8, lines[i], " ")); |
| 379 | try list.append('\n'); | 379 | try list.append('\n'); |
| 380 | } | 380 | } |
| 381 | return try list.toOwnedSliceSentinel(0); | 381 | return try list.toOwnedSliceSentinel(0); |