diff options
| author | Jacob Trueb <jtrueb@northwestern.edu> | 2024-04-11 13:24:32 -0500 |
|---|---|---|
| committer | Jacob Trueb <jtrueb@northwestern.edu> | 2024-04-24 17:37:44 +0000 |
| commit | 3ad0618076af29d23c8d0ca386e4da0b1f271d18 (patch) | |
| tree | 0170790f5937f8868cf5003113a0408be9958ca4 | |
| parent | df7daa815f4047a1cfe24ecfbc12cfd4f40fa928 (diff) | |
| download | rust-3ad0618076af29d23c8d0ca386e4da0b1f271d18.tar.gz rust-3ad0618076af29d23c8d0ca386e4da0b1f271d18.zip | |
Fix cannot usage in time.rs
| -rw-r--r-- | library/core/src/time.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/core/src/time.rs b/library/core/src/time.rs index 78494b866b1..72f6a3b773b 100644 --- a/library/core/src/time.rs +++ b/library/core/src/time.rs @@ -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" } } } |
