We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d447cea commit 44665c4Copy full SHA for 44665c4
src/libstd/time/mod.rs
@@ -94,8 +94,9 @@ impl Instant {
94
///
95
/// # Panics
96
97
- /// This function may panic if the current time is earlier than this instant
98
- /// which can happen if an `Instant` is produced synthetically.
+ /// This function may panic if the current time is earlier than this
+ /// instant, which is something that can happen if an `Instant` is
99
+ /// produced synthetically.
100
pub fn elapsed(&self) -> Duration {
101
Instant::now().duration_from_earlier(*self)
102
}
0 commit comments