Skip to content

Commit

Permalink
Fix comment.
Browse files Browse the repository at this point in the history
The underlying method saturates. This comment was likely written with an old underlying implementation.

Signed-off-by: Kevin Cox <[email protected]>
  • Loading branch information
kevincox committed Dec 13, 2024
1 parent ff3b555 commit 6d6e95e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neptun/src/sleepyinstant/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ impl Instant {
///
/// # Panics
///
/// panics when `earlier` was later than `self`.
/// Returns `Duration::ZERO` when `earlier` was later than `self`.
pub fn duration_since(&self, earlier: Instant) -> Duration {
self.t.duration_since(earlier.t)
}
Expand Down

0 comments on commit 6d6e95e

Please sign in to comment.