Rollup merge of #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
This commit is contained in:
commit
4b913a2330
@ -1437,10 +1437,10 @@ impl TryFromFloatSecsError {
|
|||||||
const fn description(&self) -> &'static str {
|
const fn description(&self) -> &'static str {
|
||||||
match self.kind {
|
match self.kind {
|
||||||
TryFromFloatSecsErrorKind::Negative => {
|
TryFromFloatSecsErrorKind::Negative => {
|
||||||
"can not convert float seconds to Duration: value is negative"
|
"cannot convert float seconds to Duration: value is negative"
|
||||||
}
|
}
|
||||||
TryFromFloatSecsErrorKind::OverflowOrNan => {
|
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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user