std::time : fix doc variable name
This commit is contained in:
parent
b2eed72a6f
commit
526a665e96
@ -95,8 +95,8 @@
|
|||||||
/// use std::time::{Instant, Duration};
|
/// use std::time::{Instant, Duration};
|
||||||
///
|
///
|
||||||
/// let now = Instant::now();
|
/// let now = Instant::now();
|
||||||
/// let max_nanoseconds = u64::MAX / 1_000_000_000;
|
/// let max_seconds = u64::MAX / 1_000_000_000;
|
||||||
/// let duration = Duration::new(max_nanoseconds, 0);
|
/// let duration = Duration::new(max_seconds, 0);
|
||||||
/// println!("{:?}", now + duration);
|
/// println!("{:?}", now + duration);
|
||||||
/// ```
|
/// ```
|
||||||
///
|
///
|
||||||
|
Loading…
Reference in New Issue
Block a user