We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee8ad8e commit bdd8e7fCopy full SHA for bdd8e7f
src/libstd/time/duration.rs
@@ -125,8 +125,8 @@ impl Duration {
125
/// ```
126
/// use std::time::Duration;
127
///
128
- /// let five_seconds = Duration::new(5, 0);
129
- /// assert_eq!(five_seconds.as_secs(), 5);
+ /// let duration = Duration::new(5, 730023852);
+ /// assert_eq!(duration.as_secs(), 5);
130
131
#[stable(feature = "duration", since = "1.3.0")]
132
#[inline]
0 commit comments