diff --git a/README.md b/README.md index 8ec42501242dc7ac79c478d08d399b1ee4260beb..c975f4da2214eeebafdf7e695d24da804abfaa10 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ ![loc](https://sloc.xyz/github/nektro/zig-yaml) [![license](https://img.shields.io/github/license/nektro/zig-yaml.svg)](https://github.com/nektro/zig-yaml/blob/master/LICENSE) [![nektro @ github sponsors](https://img.shields.io/badge/sponsors-nektro-purple?logo=github)](https://github.com/sponsors/nektro) -[![Zig](https://img.shields.io/badge/Zig-0.15-f7a41d)](https://ziglang.org/) +[![Zig](https://img.shields.io/badge/Zig-0.16-f7a41d)](https://ziglang.org/) [![Zigmod](https://img.shields.io/badge/Zigmod-latest-f7a41d)](https://github.com/nektro/zigmod) Zig bindings for [libyaml](https://github.com/yaml/libyaml). diff --git a/yaml.zig b/yaml.zig index 62642b1e7071b934fc00d05962e7f9553f47d0cc..d33ee6ef83e137855473c774cee1ad49c91d94bb 100644 --- a/yaml.zig +++ b/yaml.zig @@ -375,7 +375,7 @@ fn get_event_string(event: Token, p: *const Parser) ![:0]u8 { errdefer list.deinit(); var i = sm.line + 1; while (i < em.line) : (i += 1) { - try list.appendSlice(std.mem.trimLeft(u8, lines[i], " ")); + try list.appendSlice(std.mem.trimStart(u8, lines[i], " ")); try list.append('\n'); } return try list.toOwnedSliceSentinel(0);