Skip to content

Commit

Permalink
Unrolled build for rust-lang#123815
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#123815 - trueb2:patch-1, r=workingjubilee

Fix cannot usage in time.rs

Fix a small grammar error in usage of cannot in time.rs errors
  • Loading branch information
rust-timer committed May 3, 2024
2 parents 0d7b2fb + 3ad0618 commit 5b26ff3
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 5b26ff3

Please sign in to comment.