Skip to content

Commit

Permalink
Rollup merge of rust-lang#103288 - johnmatthiggins:master, r=thomcc
Browse files Browse the repository at this point in the history
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 rust-lang#103282.
  • Loading branch information
matthiaskrgr authored Oct 20, 2022
2 parents ec378e6 + a3ccb19 commit 761ab0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/std/src/time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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].
///
Expand Down

0 comments on commit 761ab0d

Please sign in to comment.