Skip to content

Commit

Permalink
Fix docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
botahamec committed Nov 4, 2023
1 parent 8d42920 commit e762a88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/duration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -232,14 +232,14 @@ impl Duration {
}
}

/// Returns the number of nanoseconds such that
/// Returns the number of microseconds such that
/// `subsec_micros() + num_seconds() * MICROS_PER_SEC` is the total number of
/// microseconds in the duration.
pub const fn subsec_micros(&self) -> i32 {
self.subsec_nanos() / NANOS_PER_MICRO
}

/// Returns the number of nanoseconds such that
/// Returns the number of milliseconds such that
/// `subsec_millis() + num_seconds() * MILLIS_PER_SEC` is the total number of
/// milliseconds in the duration.
pub const fn subsec_millis(&self) -> i32 {
Expand Down

0 comments on commit e762a88

Please sign in to comment.