Skip to content

Commit 335195d

Browse files
committed
stabilize duration_from_micros feature
1 parent 78a8c25 commit 335195d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/libcore/time.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -137,15 +137,14 @@ impl Duration {
137137
/// # Examples
138138
///
139139
/// ```
140-
/// #![feature(duration_from_micros)]
141140
/// use std::time::Duration;
142141
///
143142
/// let duration = Duration::from_micros(1_000_002);
144143
///
145144
/// assert_eq!(1, duration.as_secs());
146145
/// assert_eq!(2000, duration.subsec_nanos());
147146
/// ```
148-
#[unstable(feature = "duration_from_micros", issue = "44400")]
147+
#[stable(feature = "duration_from_micros", since = "1.27.0")]
149148
#[inline]
150149
pub const fn from_micros(micros: u64) -> Duration {
151150
Duration {

0 commit comments

Comments
 (0)