]> git.lizzy.rs Git - rust.git/blobdiff - library/std/src/time.rs
Rollup merge of #96129 - mattheww:2022-04_float_rounding, r=Dylan-DPC
[rust.git] / library / std / src / time.rs
index 708e4064e06f3a57921f4a8d01337a50c56d3e90..b2014f462bd34569865955b30ab13d48e222c5b6 100644 (file)
@@ -95,8 +95,8 @@
 /// use std::time::{Instant, Duration};
 ///
 /// let now = Instant::now();
-/// let max_nanoseconds = u64::MAX / 1_000_000_000;
-/// let duration = Duration::new(max_nanoseconds, 0);
+/// let max_seconds = u64::MAX / 1_000_000_000;
+/// let duration = Duration::new(max_seconds, 0);
 /// println!("{:?}", now + duration);
 /// ```
 ///