Skip to content

Commit

Permalink
Merge pull request #947 from umi-eng/duration-doc-typo
Browse files Browse the repository at this point in the history
Fix typo in doc comment (`Instant` -> `Duration`)
  • Loading branch information
Dirbaio authored Jul 3, 2024
2 parents fcd40b5 + 5d6fd7e commit 99ddd22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ impl Duration {
}
}

/// Create a new `Instant` from a number of seconds.
/// Create a new `Duration` from a number of seconds.
pub const fn from_secs(secs: u64) -> Duration {
Duration {
micros: secs * 1000000,
Expand Down

0 comments on commit 99ddd22

Please sign in to comment.