Skip to content

Commit 03221ad

Browse files
committed
Improve HashBag::difference() doc wording
1 parent 217ef6f commit 03221ad

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/lib.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -702,9 +702,10 @@ where
702702
}
703703
}
704704

705-
/// Returns an iterator that visits all values present in `self` that is not
706-
/// present in `other`. Takes the number of occurrences into account in both
707-
/// bags.
705+
/// Returns an iterator over all the elements that are in `self` with a
706+
/// higher occurrence count than in `other`. The count in the returned
707+
/// iterator represents how many more of a given element are in `self` than
708+
/// `other`.
708709
///
709710
/// # Examples
710711
///

0 commit comments

Comments
 (0)