Skip to content

Commit

Permalink
fix: doc test
Browse files Browse the repository at this point in the history
  • Loading branch information
VillSnow committed Jun 21, 2020
1 parent 4c8ce48 commit c9b4915
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/libcore/slice/mod.rs
Expand Up @@ -2676,11 +2676,11 @@ impl<T> [T] {
/// #![feature(partition_point)]
///
/// let v = [1, 2, 3, 3, 5, 6, 7];
/// let i = xs.partition_point(|&x| x < 5);
/// let i = v.partition_point(|&x| x < 5);
///
/// assert_eq!(i, 4);
/// assert!(xs[..i].iter().all(|&x| x < 5));
/// assert!(xs[i..].iter().all(|&x| !(x < 5)));
/// assert!(v[..i].iter().all(|&x| x < 5));
/// assert!(v[i..].iter().all(|&x| !(x < 5)));
/// ```
#[unstable(feature = "partition_point", reason = "new API", issue = "99999")]
pub fn partition_point<P>(&self, mut pred: P) -> usize
Expand Down

0 comments on commit c9b4915

Please sign in to comment.