summary refs log tree commit diff
path: root/library/std/src
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2022-05-23 07:43:51 +0200
committerGitHub <noreply@github.com>2022-05-23 07:43:51 +0200
commit06e89fdcfdf2211f489b875b76f78340cb57440c (patch)
tree6338d41c81bc3dd46de0904bfd3200365d978817 /library/std/src
parent6d366f15d4c86553880bca17c038e5a431c103b0 (diff)
parent526a665e96017bb630f4cdfd83582939d9374240 (diff)
downloadrust-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.rs4
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);
 /// ```
 ///