Skip to content

Commit 06e89fd

Browse files
authored
Rollup merge of rust-lang#97294 - jersou:patch-1, r=Dylan-DPC
std::time : fix variable name in the doc
2 parents 6d366f1 + 526a665 commit 06e89fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/std/src/time.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ pub use core::time::FromFloatSecsError;
9595
/// use std::time::{Instant, Duration};
9696
///
9797
/// let now = Instant::now();
98-
/// let max_nanoseconds = u64::MAX / 1_000_000_000;
99-
/// let duration = Duration::new(max_nanoseconds, 0);
98+
/// let max_seconds = u64::MAX / 1_000_000_000;
99+
/// let duration = Duration::new(max_seconds, 0);
100100
/// println!("{:?}", now + duration);
101101
/// ```
102102
///

0 commit comments

Comments
 (0)