summaryrefslogtreecommitdiff
path: root/src/recent.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/recent.zig')
-rw-r--r--src/recent.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/recent.zig b/src/recent.zig
index 4f744750..31ed9c4c 100644
--- a/src/recent.zig
+++ b/src/recent.zig
@@ -170,7 +170,7 @@ pub const List = struct {
}
/// An entry as a line of the file, `<line> <col> <aline> <acol> <path>`.
- pub fn writeEntry(e: Entry, w: *std.Io.Writer) !void {
+ pub fn writeEntry(e: Entry, w: *std.Io.Writer) std.Io.Writer.Error!void {
// A name with a newline in it would read back as two lines: not kept.
if (std.mem.indexOfScalar(u8, e.path, '\n') == null)
try w.print("{d} {d} {d} {d} {s}\n", .{ e.line, e.col, e.aline, e.acol, e.path });