Skip to content

Commit

Permalink
Fixed typo in Duration::hours() exception
Browse files Browse the repository at this point in the history
  • Loading branch information
danwilliams authored and djc committed Jan 25, 2024
1 parent bf70419 commit b5381f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/duration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit b5381f8

Please sign in to comment.