authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2023-05-16 11:18:28 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2023-05-16 11:18:28 -07:00
log379f884f2341ccb3932ee04634f556f3d012c220
treea54e756ed37cb7b3adfce020e8b300464a64f3f6
parent5af3b0775f25974a11ff5a839df452c87796d252

wrap has no reason to return inferred error union


1 files changed, 1 insertions(+), 1 deletions(-)

time.zig+1-1
...@@ -473,7 +473,7 @@ fn printLongName(writer: anytype, index: u16, names: []const string) !void {...@@ -473,7 +473,7 @@ fn printLongName(writer: anytype, index: u16, names: []const string) !void {
473 try writer.writeAll(names[index]);473 try writer.writeAll(names[index]);
474}474}
475475
476fn wrap(val: u16, at: u16) !u16 {476fn wrap(val: u16, at: u16) u16 {
477 var tmp = val % at;477 var tmp = val % at;
478 return if (tmp == 0) at else tmp;478 return if (tmp == 0) at else tmp;
479}479}