mirror of
https://github.com/tiffany352/rink-rs
synced 2024-11-10 05:34:14 +00:00
Fix typo
This commit is contained in:
parent
5f37f1506c
commit
4a41da18c8
1 changed files with 2 additions and 2 deletions
|
@ -119,8 +119,8 @@ pub fn parse_date<I>(
|
|||
let value = u32::from_str_radix(&**s, 10).unwrap();
|
||||
out.hour_mod_12 = Some(value % 12);
|
||||
Ok(())
|
||||
},
|
||||
x => Err(format!("Expected 2-digit hour24, got {}", ts(x)))
|
||||
}
|
||||
x => Err(format!("Expected 2-digit hour12, got {}", ts(x))),
|
||||
},
|
||||
"hour24" => match tok {
|
||||
Some(DateToken::Number(ref s, None)) if s.len() == 2 => {
|
||||
|
|
Loading…
Reference in a new issue