We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c5b4125 + d8587be commit bfd5376Copy full SHA for bfd5376
std/src/time.rs
@@ -95,8 +95,8 @@ pub use core::time::FromFloatSecsError;
95
/// use std::time::{Instant, Duration};
96
///
97
/// let now = Instant::now();
98
-/// let max_nanoseconds = u64::MAX / 1_000_000_000;
99
-/// let duration = Duration::new(max_nanoseconds, 0);
+/// let max_seconds = u64::MAX / 1_000_000_000;
+/// let duration = Duration::new(max_seconds, 0);
100
/// println!("{:?}", now + duration);
101
/// ```
102
0 commit comments