Skip to content

Commit 4b913a2

Browse files
authored
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
2 parents a296693 + 3ad0618 commit 4b913a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: library/core/src/time.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1437,10 +1437,10 @@ impl TryFromFloatSecsError {
14371437
const fn description(&self) -> &'static str {
14381438
match self.kind {
14391439
TryFromFloatSecsErrorKind::Negative => {
1440-
"can not convert float seconds to Duration: value is negative"
1440+
"cannot convert float seconds to Duration: value is negative"
14411441
}
14421442
TryFromFloatSecsErrorKind::OverflowOrNan => {
1443-
"can not convert float seconds to Duration: value is either too big or NaN"
1443+
"cannot convert float seconds to Duration: value is either too big or NaN"
14441444
}
14451445
}
14461446
}

0 commit comments

Comments
 (0)