Skip to content

Commit 3ad0618

Browse files
committedApr 24, 2024·
Fix cannot usage in time.rs
1 parent df7daa8 commit 3ad0618

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎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)
Please sign in to comment.