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 aa10fce commit ee8ad8eCopy full SHA for ee8ad8e
src/libstd/time/duration.rs
@@ -102,7 +102,10 @@ impl Duration {
102
/// ```
103
/// use std::time::Duration;
104
///
105
- /// let five_seconds = Duration::from_millis(5000);
+ /// let duration = Duration::from_millis(2569);
106
+ ///
107
+ /// assert_eq!(2, duration.as_secs());
108
+ /// assert_eq!(569000000, duration.subsec_nanos());
109
110
#[stable(feature = "duration", since = "1.3.0")]
111
#[inline]
0 commit comments