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 3ee0a59 + 60ea0a4 commit bbe496aCopy full SHA for bbe496a
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