Rollup merge of #97294 - jersou:patch-1, r=Dylan-DPC
std::time : fix variable name in the doc
This commit is contained in:
commit
06e89fdcfd
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