From c9814fa4850eb995019236d71f794cd8dc7c4ab0 Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Tue, 8 Aug 2017 21:37:37 -0700 Subject: [PATCH 1/2] 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. --- src/libstd/time/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libstd/time/mod.rs b/src/libstd/time/mod.rs index 40113d164df55..839d2188f3d0b 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. /// From 97d046a7278c7019a5f9ff1a0c2e30324ff0346a Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Wed, 9 Aug 2017 09:28:18 -0700 Subject: [PATCH 2/2] Fix grammar --- src/libstd/time/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libstd/time/mod.rs b/src/libstd/time/mod.rs index 839d2188f3d0b..e8eb4abaa40c9 100644 --- a/src/libstd/time/mod.rs +++ b/src/libstd/time/mod.rs @@ -36,7 +36,7 @@ mod duration; /// A measurement of a monotonically nondecreasing clock. /// Opaque and useful only with `Duration`. /// -/// Instants are always guaranteed to no less than any previously measured +/// Instants are always guaranteed to be 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. ///