We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 980871a commit 197efb0Copy full SHA for 197efb0
src/libcore/time.rs
@@ -639,9 +639,9 @@ impl Duration {
639
///
640
/// let dur = Duration::new(2, 700_000_000);
641
/// // note that due to rounding errors result is slightly different
642
- /// // from 8.478
+ /// // from 8.478 anf 847800.0
643
/// 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));
+ /// assert_eq!(dur.mul_f32(3.14e5), Duration::new(847799, 969_120_256));
645
/// ```
646
#[unstable(feature = "duration_float", issue = "54361")]
647
#[inline]
0 commit comments