From b5381f8fb5c2ba32260288dc2fc43a711ed2549d Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Thu, 25 Jan 2024 06:29:21 +0000 Subject: [PATCH] Fixed typo in Duration::hours() exception --- src/duration.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/duration.rs b/src/duration.rs index 63fa66fd49..c4e9ee2d62 100644 --- a/src/duration.rs +++ b/src/duration.rs @@ -116,7 +116,7 @@ impl Duration { #[inline] #[must_use] pub fn hours(hours: i64) -> Duration { - Duration::try_hours(hours).expect("Duration::hours ouf of bounds") + Duration::try_hours(hours).expect("Duration::hours out of bounds") } /// Makes a new `Duration` with given number of hours.