Skip to content

Commit 197efb0

Browse files
authored
fix test
1 parent 980871a commit 197efb0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libcore/time.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -639,9 +639,9 @@ impl Duration {
639639
///
640640
/// let dur = Duration::new(2, 700_000_000);
641641
/// // note that due to rounding errors result is slightly different
642-
/// // from 8.478
642+
/// // from 8.478 anf 847800.0
643643
/// assert_eq!(dur.mul_f32(3.14), Duration::new(8, 478_000_640));
644-
/// assert_eq!(dur.mul_f32(3.14e5), Duration::new(847_800, 64_000_000));
644+
/// assert_eq!(dur.mul_f32(3.14e5), Duration::new(847799, 969_120_256));
645645
/// ```
646646
#[unstable(feature = "duration_float", issue = "54361")]
647647
#[inline]

0 commit comments

Comments
 (0)