diff options
| author | Corey Farwell <coreyf@rwell.org> | 2017-08-14 20:28:43 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-08-14 20:28:43 -0400 |
| commit | 337389741f9e662546c86cf41a390adacebaf994 (patch) | |
| tree | 129036e4485dc1fb131e987908de9f26bd093cdc /src/libstd | |
| parent | df511d5548ebb7f971abcd3a5283cb1d37b64596 (diff) | |
| parent | 97d046a7278c7019a5f9ff1a0c2e30324ff0346a (diff) | |
| download | rust-337389741f9e662546c86cf41a390adacebaf994.tar.gz rust-337389741f9e662546c86cf41a390adacebaf994.zip | |
Rollup merge of #43756 - sfackler:instant-nondecreasing, r=alexcrichton
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.
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/time/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/time/mod.rs b/src/libstd/time/mod.rs index 40113d164df..e8eb4abaa40 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 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. /// |
