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.
1 parent f947b9c commit 60ea0a4Copy full SHA for 60ea0a4
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