Skip to content

Commit 7119769

Browse files
authored
Merge pull request #121 from cakebaker/rename_const
Rename `TWELVEHOUR` to `TWELVE_HOUR`
2 parents e7ed14e + 46a82b7 commit 7119769

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/parse_time_only_str.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use regex::Regex;
44
mod time_only_formats {
55
pub const HH_MM: &str = "%R";
66
pub const HH_MM_SS: &str = "%T";
7-
pub const TWELVEHOUR: &str = "%r";
7+
pub const TWELVE_HOUR: &str = "%r";
88
}
99

1010
/// Convert a military time zone string to a time zone offset.
@@ -55,7 +55,7 @@ fn parse_time_with_offset_multi(
5555
for fmt in [
5656
time_only_formats::HH_MM,
5757
time_only_formats::HH_MM_SS,
58-
time_only_formats::TWELVEHOUR,
58+
time_only_formats::TWELVE_HOUR,
5959
] {
6060
let parsed = match NaiveTime::parse_from_str(s, fmt) {
6161
Ok(t) => t,

0 commit comments

Comments
 (0)