Skip to content

Commit c6a680e

Browse files
authored
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.
2 parents cfb424a + a3ccb19 commit c6a680e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/std/src/time.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ impl Instant {
356356
///
357357
/// # Panics
358358
///
359-
/// Previous rust versions panicked when self was earlier than the current time. Currently this
359+
/// Previous rust versions panicked when the current time was earlier than self. Currently this
360360
/// method returns a Duration of zero in that case. Future versions may reintroduce the panic.
361361
/// See [Monotonicity].
362362
///

0 commit comments

Comments
 (0)