Skip to content

Commit 526a665

Browse files
authored
std::time : fix doc variable name
1 parent b2eed72 commit 526a665

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/std/src/time.rs

Lines changed: 2 additions & 2 deletions
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)