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 18, 2024
1 parent ff3b555 commit a374b52
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions neptun/src/sleepyinstant/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,6 @@ impl Instant {

/// Returns the amount of time elapsed from another instant to this one,
/// or zero duration if that instant is later than this one.
///
/// # Panics
///
/// panics 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 a374b52

Please sign in to comment.