mirror of
https://codeberg.org/ziglings/exercises.git
synced 2026-06-09 08:30:00 +00:00
Update to new Zig mem trim API
trimRight is now trimEnd
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user