refactoring

This commit is contained in:
Paul Campbell 2021-12-29 19:04:39 +00:00
parent 0795836b61
commit ea096f1b5a

View file

@ -37,7 +37,7 @@ fn dumpInput(in: File, out: File) !void {
} }
fn nextLine(reader: FileReader, buffer: []u8) !?[]const u8 { fn nextLine(reader: FileReader, buffer: []u8) !?[]const u8 {
var line = (try reader.readUntilDelimiterOrEof( var line: []u8 = (try reader.readUntilDelimiterOrEof(
buffer, buffer,
'\n', '\n',
)) orelse return null; )) orelse return null;