Skip to content

Commit 44665c4

Browse files
committed
doc: add a pause
1 parent d447cea commit 44665c4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/libstd/time/mod.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,9 @@ impl Instant {
9494
///
9595
/// # Panics
9696
///
97-
/// This function may panic if the current time is earlier than this instant
98-
/// which can happen if an `Instant` is produced synthetically.
97+
/// This function may panic if the current time is earlier than this
98+
/// instant, which is something that can happen if an `Instant` is
99+
/// produced synthetically.
99100
pub fn elapsed(&self) -> Duration {
100101
Instant::now().duration_from_earlier(*self)
101102
}

0 commit comments

Comments
 (0)