about summary refs log tree commit diff
diff options
context:
space:
mode:
authorArtyom Pavlov <newpavlov@gmail.com>2019-03-11 18:59:41 +0000
committerGitHub <noreply@github.com>2019-03-11 18:59:41 +0000
commit197efb05243976a631107f1d6ad88bff65fd43e9 (patch)
tree7bc151157aeedacd39a898b9c7e86131dcee132f
parent980871af270314d1e4dd42828d9a7c76d6e0c89a (diff)
downloadrust-197efb05243976a631107f1d6ad88bff65fd43e9.tar.gz
rust-197efb05243976a631107f1d6ad88bff65fd43e9.zip
fix test
-rw-r--r--src/libcore/time.rs4
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]