Skip to content

Commit b40a9f4

Browse files
committed
from_micros: add feature name
1 parent a15c541 commit b40a9f4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/libstd/time/duration.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -123,14 +123,15 @@ impl Duration {
123123
/// # Examples
124124
///
125125
/// ```
126+
/// #![feature(duration_from_micros)]
126127
/// use std::time::Duration;
127128
///
128129
/// let duration = Duration::from_micros(1_000_002);
129130
///
130131
/// assert_eq!(1, duration.as_secs());
131132
/// assert_eq!(2000, duration.subsec_nanos());
132133
/// ```
133-
#[unstable(feature = "", issue = "44400")]
134+
#[unstable(feature = "duration_from_micros", issue = "44400")]
134135
#[inline]
135136
pub fn from_micros(micros: u64) -> Duration {
136137
let secs = micros / MICROS_PER_SEC;

0 commit comments

Comments
 (0)