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);
@@ -277,7 +275,7 @@ impl Ordering {
277
275
///
278
276
/// assert_eq!(result, Ordering::Less);
279
277
/// ```
280
- #[ unstable ( feature = "ordering_chaining" , issue = "37053 " ) ]
278
+ #[ stable ( feature = "ordering_chaining" , since = "1.17.0 " ) ]
281
279
pub fn then ( self , other : Ordering ) -> Ordering {
282
280
match self {
283
281
Equal => other,
@@ -293,8 +291,6 @@ impl Ordering {
293
291
/// # Examples
294
292
///
295
293
/// ```
296
- /// #![feature(ordering_chaining)]
297
- ///
298
294
/// use std::cmp::Ordering;
299
295
///
300
296
/// let result = Ordering::Equal.then_with(|| Ordering::Less);
@@ -315,7 +311,7 @@ impl Ordering {
315
311
///
316
312
/// assert_eq!(result, Ordering::Less);
317
313
/// ```
318
- #[ unstable ( feature = "ordering_chaining" , issue = "37053 " ) ]
314
+ #[ stable ( feature = "ordering_chaining" , since = "1.17.0 " ) ]
319
315
pub fn then_with < F : FnOnce ( ) -> Ordering > ( self , f : F ) -> Ordering {
320
316
match self {
321
317
Equal => f ( ) ,
You can’t perform that action at this time.
0 commit comments