Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Ockajak committed Jul 12, 2024
1 parent f97660d commit 4d88826
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/extensions/ordered.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,6 @@ pub trait Ordered<Item> {
/// Tests if this sequence contains all elements of another collection exactly
/// as many times as their appear in the other collection and vice versa.
///
/// Returns `true` if the other collection is empty.
///
/// # Example
///
/// ```
Expand All @@ -87,6 +85,7 @@ pub trait Ordered<Item> {
///
/// assert!(!a.equivalent(&vec![1, 3, 3]));
/// assert!(!a.equivalent(&vec![1, 1, 2, 2, 3]));
/// assert!(!a.equivalent(&vec![]));
/// ```
fn equivalent<'a>(&'a self, elements: &'a impl Iterable<Item<'a> = &'a Item>) -> bool
where
Expand Down

0 comments on commit 4d88826

Please sign in to comment.