Skip to content

Commit

Permalink
Fix cannot usage in time.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
trueb2 committed Apr 24, 2024
1 parent df7daa8 commit 3ad0618
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/core/src/time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1437,10 +1437,10 @@ impl TryFromFloatSecsError {
const fn description(&self) -> &'static str {
match self.kind {
TryFromFloatSecsErrorKind::Negative => {
"can not convert float seconds to Duration: value is negative"
"cannot convert float seconds to Duration: value is negative"
}
TryFromFloatSecsErrorKind::OverflowOrNan => {
"can not convert float seconds to Duration: value is either too big or NaN"
"cannot convert float seconds to Duration: value is either too big or NaN"
}
}
}
Expand Down

0 comments on commit 3ad0618

Please sign in to comment.