Skip to content

Commit c9b4915

Browse files
committed
fix: doc test
1 parent 4c8ce48 commit c9b4915

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/libcore/slice/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2676,11 +2676,11 @@ impl<T> [T] {
26762676
/// #![feature(partition_point)]
26772677
///
26782678
/// let v = [1, 2, 3, 3, 5, 6, 7];
2679-
/// let i = xs.partition_point(|&x| x < 5);
2679+
/// let i = v.partition_point(|&x| x < 5);
26802680
///
26812681
/// assert_eq!(i, 4);
2682-
/// assert!(xs[..i].iter().all(|&x| x < 5));
2683-
/// assert!(xs[i..].iter().all(|&x| !(x < 5)));
2682+
/// assert!(v[..i].iter().all(|&x| x < 5));
2683+
/// assert!(v[i..].iter().all(|&x| !(x < 5)));
26842684
/// ```
26852685
#[unstable(feature = "partition_point", reason = "new API", issue = "99999")]
26862686
pub fn partition_point<P>(&self, mut pred: P) -> usize

0 commit comments

Comments
 (0)