Skip to content

Commit

Permalink
Rollup merge of #97294 - jersou:patch-1, r=Dylan-DPC
Browse files Browse the repository at this point in the history
std::time : fix variable name in the doc
  • Loading branch information
Dylan-DPC authored May 23, 2022
2 parents 6d366f1 + 526a665 commit 06e89fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/std/src/time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
/// ```
///
Expand Down

0 comments on commit 06e89fd

Please sign in to comment.