Skip to content

Commit 0aa56ea

Browse files
Fix overflow duration error messages (#69)
* fix comment * v bump
1 parent c35f715 commit 0aa56ea

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "speedate"
33
authors = ["Samuel Colvin <[email protected]>"]
4-
version = "0.14.1"
4+
version = "0.14.2"
55
edition = "2021"
66
description = "Fast and simple datetime, date, time and duration parsing"
77
readme = "README.md"

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,9 @@ pub enum ParseError {
134134
DurationInvalidDays,
135135
/// a numeric value in the duration is too large
136136
DurationValueTooLarge,
137-
/// durations may not exceed 999,999,999 days
137+
/// durations may not exceed 999,999,999 hours
138138
DurationHourValueTooLarge,
139-
/// durations hours must less than 1,000,000,000
139+
/// durations may not exceed 999,999,999 days
140140
DurationDaysTooLarge,
141141
/// dates before 1600 are not supported as unix timestamps
142142
DateTooSmall,

0 commit comments

Comments
 (0)