diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-10-20 22:42:39 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-20 22:42:39 +0200 |
| commit | c6a680ebc523b77b54791cac590941652480b321 (patch) | |
| tree | 4ed54e8ffc6a4c73c6e896c40a214e107ab4a38a | |
| parent | cfb424a0447fe940831dfd6778cd2e4291e40724 (diff) | |
| parent | a3ccb193be29ebf5580d4759a9f2b48df069c365 (diff) | |
| download | rust-c6a680ebc523b77b54791cac590941652480b321.tar.gz rust-c6a680ebc523b77b54791cac590941652480b321.zip | |
Rollup merge of #103288 - johnmatthiggins:master, r=thomcc
Fixed docs typo in `library/std/src/time.rs` * Changed comment from `Previous rust versions panicked when self was earlier than the current time.` to `Previous rust versions panicked when the current time was earlier than self.` * Resolves #103282.
| -rw-r--r-- | library/std/src/time.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/time.rs b/library/std/src/time.rs index 759a59e1f98..d4a1b9d9b50 100644 --- a/library/std/src/time.rs +++ b/library/std/src/time.rs @@ -356,7 +356,7 @@ impl Instant { /// /// # Panics /// - /// Previous rust versions panicked when self was earlier than the current time. Currently this + /// Previous rust versions panicked when the current time was earlier than self. Currently this /// method returns a Duration of zero in that case. Future versions may reintroduce the panic. /// See [Monotonicity]. /// |
