]> git.lizzy.rs Git - rust.git/blobdiff - src/libstd/time.rs
correct comment to match behavior
[rust.git] / src / libstd / time.rs
index 68a549158730da224aa48f2cf984f5aa8cdcd6e3..c36e78b1d004e2bc02f4b4e21e274c4f3aae9fd9 100644 (file)
@@ -284,7 +284,7 @@ pub fn checked_duration_since(&self, earlier: Instant) -> Option<Duration> {
     }
 
     /// Returns the amount of time elapsed from another instant to this one,
-    /// or zero duration if that instant is earlier than this one.
+    /// or zero duration if that instant is later than this one.
     ///
     /// # Examples
     ///