From 526a665e96017bb630f4cdfd83582939d9374240 Mon Sep 17 00:00:00 2001 From: jersou Date: Mon, 23 May 2022 00:02:09 +0200 Subject: [PATCH] std::time : fix doc variable name --- library/std/src/time.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/std/src/time.rs b/library/std/src/time.rs index 708e4064e06f3..b2014f462bd34 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); /// ``` ///