From e5b3f03681cc3bad7c50b8abef4ea25483a3d611 Mon Sep 17 00:00:00 2001 From: Emil Lerch Date: Sat, 5 Aug 2023 13:00:19 -0700 Subject: [PATCH] fix compile errors on date.zig --- src/date.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/date.zig b/src/date.zig index 4fcd27f..0c48674 100644 --- a/src/date.zig +++ b/src/date.zig @@ -94,7 +94,7 @@ pub fn parseEnglishToDateTime(data: []const u8) !DateTime { fn endEnglishState(current_state: EnglishParsingState, date: *DateTime, prev_data: []const u8) !EnglishParsingState { var next_state: EnglishParsingState = undefined; - log.debug("endEnglishState. Current state '{s}', data: {s}", .{ current_state, prev_data }); + log.debug("endEnglishState. Current state '{}', data: {s}", .{ current_state, prev_data }); // Using two switches is slightly less efficient, but more readable switch (current_state) { @@ -200,7 +200,7 @@ fn parseIso8601BasicFormatToDateTime(data: []const u8) !DateTime { fn endIsoState(current_state: IsoParsingState, date: *DateTime, prev_data: []const u8) !IsoParsingState { var next_state: IsoParsingState = undefined; - log.debug("endIsoState. Current state '{s}', data: {s}", .{ current_state, prev_data }); + log.debug("endIsoState. Current state '{}', data: {s}", .{ current_state, prev_data }); // Using two switches is slightly less efficient, but more readable switch (current_state) {