diff options
| author | Artyom Pavlov <newpavlov@gmail.com> | 2019-03-11 18:59:41 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-03-11 18:59:41 +0000 |
| commit | 197efb05243976a631107f1d6ad88bff65fd43e9 (patch) | |
| tree | 7bc151157aeedacd39a898b9c7e86131dcee132f | |
| parent | 980871af270314d1e4dd42828d9a7c76d6e0c89a (diff) | |
| download | rust-197efb05243976a631107f1d6ad88bff65fd43e9.tar.gz rust-197efb05243976a631107f1d6ad88bff65fd43e9.zip | |
fix test
| -rw-r--r-- | src/libcore/time.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/time.rs b/src/libcore/time.rs index c4d4c4622f3..f106d06d2ff 100644 --- a/src/libcore/time.rs +++ b/src/libcore/time.rs @@ -639,9 +639,9 @@ impl Duration { /// /// let dur = Duration::new(2, 700_000_000); /// // note that due to rounding errors result is slightly different - /// // from 8.478 + /// // from 8.478 anf 847800.0 /// assert_eq!(dur.mul_f32(3.14), Duration::new(8, 478_000_640)); - /// assert_eq!(dur.mul_f32(3.14e5), Duration::new(847_800, 64_000_000)); + /// assert_eq!(dur.mul_f32(3.14e5), Duration::new(847799, 969_120_256)); /// ``` #[unstable(feature = "duration_float", issue = "54361")] #[inline] |
