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 b2eed72 commit 526a665Copy full SHA for 526a665
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