Browse Source

Merge pull request #947 from umi-eng/duration-doc-typo

Fix typo in doc comment (`Instant` -> `Duration`)
Dario Nieuwenhuis 9 months ago
parent
commit
99ddd22cdb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/time.rs

+ 1 - 1
src/time.rs

@@ -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,