mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-27 06:14:55 +00:00
fix typo
This commit is contained in:
parent
197efb0524
commit
78b248dc4c
@ -639,7 +639,7 @@ impl Duration {
|
||||
///
|
||||
/// let dur = Duration::new(2, 700_000_000);
|
||||
/// // note that due to rounding errors result is slightly different
|
||||
/// // from 8.478 anf 847800.0
|
||||
/// // from 8.478 and 847800.0
|
||||
/// assert_eq!(dur.mul_f32(3.14), Duration::new(8, 478_000_640));
|
||||
/// assert_eq!(dur.mul_f32(3.14e5), Duration::new(847799, 969_120_256));
|
||||
/// ```
|
||||
|
Loading…
Reference in New Issue
Block a user