File tree 1 file changed +2
-6
lines changed
1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -255,8 +255,6 @@ impl Ordering {
255
255
/// # Examples
256
256
///
257
257
/// ```
258
- /// #![feature(ordering_chaining)]
259
- ///
260
258
/// use std::cmp::Ordering;
261
259
///
262
260
/// let result = Ordering::Equal.then(Ordering::Less);
@@ -278,7 +276,7 @@ impl Ordering {
278
276
/// assert_eq!(result, Ordering::Less);
279
277
/// ```
280
278
#[ inline]
281
- #[ unstable ( feature = "ordering_chaining" , issue = "37053 " ) ]
279
+ #[ stable ( feature = "ordering_chaining" , since = "1.17.0 " ) ]
282
280
pub fn then ( self , other : Ordering ) -> Ordering {
283
281
match self {
284
282
Equal => other,
@@ -294,8 +292,6 @@ impl Ordering {
294
292
/// # Examples
295
293
///
296
294
/// ```
297
- /// #![feature(ordering_chaining)]
298
- ///
299
295
/// use std::cmp::Ordering;
300
296
///
301
297
/// let result = Ordering::Equal.then_with(|| Ordering::Less);
@@ -317,7 +313,7 @@ impl Ordering {
317
313
/// assert_eq!(result, Ordering::Less);
318
314
/// ```
319
315
#[ inline]
320
- #[ unstable ( feature = "ordering_chaining" , issue = "37053 " ) ]
316
+ #[ stable ( feature = "ordering_chaining" , since = "1.17.0 " ) ]
321
317
pub fn then_with < F : FnOnce ( ) -> Ordering > ( self , f : F ) -> Ordering {
322
318
match self {
323
319
Equal => f ( ) ,
You can’t perform that action at this time.
0 commit comments