fix compile errors on date.zig
This commit is contained in:
		
							parent
							
								
									5ee53a493d
								
							
						
					
					
						commit
						e5b3f03681
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -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) { | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue