diff options
| author | jersou <jersou@gmail.com> | 2022-05-23 00:02:09 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-23 00:02:09 +0200 |
| commit | 526a665e96017bb630f4cdfd83582939d9374240 (patch) | |
| tree | 20eb82e0ffc59003051fc1b6c0b234ed2cf5999f | |
| parent | b2eed72a6fbf254e7d44942eaa121fcbed05d3fb (diff) | |
| download | rust-526a665e96017bb630f4cdfd83582939d9374240.tar.gz rust-526a665e96017bb630f4cdfd83582939d9374240.zip | |
std::time : fix doc variable name
| -rw-r--r-- | library/std/src/time.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/time.rs b/library/std/src/time.rs index 708e4064e06..b2014f462bd 100644 --- a/library/std/src/time.rs +++ b/library/std/src/time.rs @@ -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); /// ``` /// |
