We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6d366f1 + 526a665 commit 06e89fdCopy full SHA for 06e89fd
library/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