std::time : fix doc variable name
This commit is contained in:
parent
b2eed72a6f
commit
526a665e96
1 changed files with 2 additions and 2 deletions
|
@ -95,8 +95,8 @@ pub use core::time::FromFloatSecsError;
|
|||
/// use std::time::{Instant, Duration};
|
||||
///
|
||||
/// let now = Instant::now();
|
||||
/// let max_nanoseconds = u64::MAX / 1_000_000_000;
|
||||
/// let duration = Duration::new(max_nanoseconds, 0);
|
||||
/// let max_seconds = u64::MAX / 1_000_000_000;
|
||||
/// let duration = Duration::new(max_seconds, 0);
|
||||
/// println!("{:?}", now + duration);
|
||||
/// ```
|
||||
///
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue