From 379f884f2341ccb3932ee04634f556f3d012c220 Mon Sep 17 00:00:00 2001 From: Meghan Denny Date: Tue, 16 May 2023 11:18:28 -0700 Subject: [PATCH] wrap has no reason to return inferred error union --- time.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/time.zig b/time.zig index cf68ceda8a65d677d936db9a59adcc5571fff3b8..0c5c96b9c924a1ab53c4a5d2ff1815b1bc16626d 100644 --- a/time.zig +++ b/time.zig @@ -473,7 +473,7 @@ fn printLongName(writer: anytype, index: u16, names: []const string) !void { try writer.writeAll(names[index]); } -fn wrap(val: u16, at: u16) !u16 { +fn wrap(val: u16, at: u16) u16 { var tmp = val % at; return if (tmp == 0) at else tmp; } -- 2.54.0