Liam Kinne 9 miesięcy temu
rodzic
commit
5d6fd7e426
1 zmienionych plików z 1 dodań i 1 usunięć
  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,