diff options
| author | Dylan DPC <99973273+Dylan-DPC@users.noreply.github.com> | 2022-05-23 07:43:51 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-23 07:43:51 +0200 |
| commit | 06e89fdcfdf2211f489b875b76f78340cb57440c (patch) | |
| tree | 6338d41c81bc3dd46de0904bfd3200365d978817 /library/std/src | |
| parent | 6d366f15d4c86553880bca17c038e5a431c103b0 (diff) | |
| parent | 526a665e96017bb630f4cdfd83582939d9374240 (diff) | |
| download | rust-06e89fdcfdf2211f489b875b76f78340cb57440c.tar.gz rust-06e89fdcfdf2211f489b875b76f78340cb57440c.zip | |
Rollup merge of #97294 - jersou:patch-1, r=Dylan-DPC
std::time : fix variable name in the doc
Diffstat (limited to 'library/std/src')
| -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); /// ``` /// |
