about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSteven Fackler <sfackler@gmail.com>2017-08-08 21:37:37 -0700
committerSteven Fackler <sfackler@gmail.com>2017-08-08 21:37:37 -0700
commitc9814fa4850eb995019236d71f794cd8dc7c4ab0 (patch)
tree133081861cf57aee0ce70ac468e4de1b463cbd94
parent0f9317d37e5469a8ce3b77ed49dd3eb315c8c859 (diff)
downloadrust-c9814fa4850eb995019236d71f794cd8dc7c4ab0.tar.gz
rust-c9814fa4850eb995019236d71f794cd8dc7c4ab0.zip
Instant is monotonically nondecreasing
We don't want to guarantee that `Instant::now() != Instant::now()` is
always true since that depends on the speed of the processor and the
resolution of the clock.
-rw-r--r--src/libstd/time/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/time/mod.rs b/src/libstd/time/mod.rs
index 40113d164df..839d2188f3d 100644
--- a/src/libstd/time/mod.rs
+++ b/src/libstd/time/mod.rs
@@ -33,10 +33,10 @@ pub use self::duration::Duration;
 
 mod duration;
 
-/// A measurement of a monotonically increasing clock.
+/// A measurement of a monotonically nondecreasing clock.
 /// Opaque and useful only with `Duration`.
 ///
-/// Instants are always guaranteed to be greater than any previously measured
+/// Instants are always guaranteed to no less than any previously measured
 /// instant when created, and are often useful for tasks such as measuring
 /// benchmarks or timing how long an operation takes.
 ///