std::time : fix doc variable name

This commit is contained in:
jersou 2022-05-23 00:02:09 +02:00 committed by GitHub
parent b2eed72a6f
commit 526a665e96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
/// ``` /// ```
/// ///