Skip to content

Commit 781a8ed

Browse files
authored
Rollup merge of rust-lang#64296 - KodrAus:chore/iter_order_by, r=Centril
Document the unstable iter_order_by library feature Tracking issue: rust-lang#64295 Follow-up for: rust-lang#62205 References the tracking issue and adds a page to the unstable book for the new unstable `iter_order_by` feature.
2 parents 164b0f3 + 4ea371e commit 781a8ed

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/libcore/iter/traits/iterator.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -2581,7 +2581,7 @@ pub trait Iterator {
25812581
/// assert_eq!(xs.iter().cmp_by(&ys, |&x, &y| (x * x).cmp(&y)), Ordering::Equal);
25822582
/// assert_eq!(xs.iter().cmp_by(&ys, |&x, &y| (2 * x).cmp(&y)), Ordering::Greater);
25832583
/// ```
2584-
#[unstable(feature = "iter_order_by", issue = "0")]
2584+
#[unstable(feature = "iter_order_by", issue = "64295")]
25852585
fn cmp_by<I, F>(mut self, other: I, mut cmp: F) -> Ordering
25862586
where
25872587
Self: Sized,
@@ -2664,7 +2664,7 @@ pub trait Iterator {
26642664
/// Some(Ordering::Greater)
26652665
/// );
26662666
/// ```
2667-
#[unstable(feature = "iter_order_by", issue = "0")]
2667+
#[unstable(feature = "iter_order_by", issue = "64295")]
26682668
fn partial_cmp_by<I, F>(mut self, other: I, mut partial_cmp: F) -> Option<Ordering>
26692669
where
26702670
Self: Sized,
@@ -2729,7 +2729,7 @@ pub trait Iterator {
27292729
///
27302730
/// assert!(xs.iter().eq_by(&ys, |&x, &y| x * x == y));
27312731
/// ```
2732-
#[unstable(feature = "iter_order_by", issue = "0")]
2732+
#[unstable(feature = "iter_order_by", issue = "64295")]
27332733
fn eq_by<I, F>(mut self, other: I, mut eq: F) -> bool
27342734
where
27352735
Self: Sized,

0 commit comments

Comments
 (0)