about summary refs log tree commit diff
diff options
context:
space:
mode:
authorZan Tysor <zantysor@yahoo.com>2020-02-29 08:40:09 -0500
committerZan Tysor <zantysor@yahoo.com>2020-02-29 08:40:09 -0500
commit435de171a3a6ae5e41bf22e00e030654a557400c (patch)
tree41dc6580e169f10d2a5e993748e95b1bd62234eb
parent04e7f96dd89b1f0ad615dff1c85d11d4c4c64cb4 (diff)
downloadrust-435de171a3a6ae5e41bf22e00e030654a557400c.tar.gz
rust-435de171a3a6ae5e41bf22e00e030654a557400c.zip
correct comment to match behavior
-rw-r--r--src/libstd/time.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/time.rs b/src/libstd/time.rs
index 68a54915873..c36e78b1d00 100644
--- a/src/libstd/time.rs
+++ b/src/libstd/time.rs
@@ -284,7 +284,7 @@ impl Instant {
     }
 
     /// 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
     ///