diff options
| author | David Pflug <david@pflug.io> | 2025-12-13 12:01:10 -0500 |
|---|---|---|
| committer | David Pflug <david@pflug.io> | 2025-12-13 12:01:10 -0500 |
| commit | 7d1184a140d35973797078995c82b2cd586e4026 (patch) | |
| tree | 583e8acadd9cb7d0fd9c9d5fb89f786ff8b41235 /test/tests.zig | |
| parent | e767de2337c9600e83884749b403886b8b2a8f6a (diff) | |
Update to new Zig mem trim API
trimRight is now trimEnd
Diffstat (limited to 'test/tests.zig')
| -rw-r--r-- | test/tests.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/tests.zig b/test/tests.zig index a242ca6..9a8e9e9 100644 --- a/test/tests.zig +++ b/test/tests.zig @@ -303,7 +303,7 @@ fn check( fn readLine(reader: *fs.File.Reader, buf: []u8) !?[]const u8 { try reader.interface.readSliceAll(buf); - return mem.trimRight(u8, buf, " \r\n"); + return mem.trimEnd(u8, buf, " \r\n"); } /// Fails with a custom error message. |
