[OrderedCollections] Doc updates

This commit is contained in:
Karoy Lorentey committed 2022-10-28 12:34:14 -07:00
1 parent b2f254384d
commit aaeeb9e440
4 files changed
+4 -4

No files matched your search

@@ -1,4 +1,4 @@
# ``Collections/OrderedSet/UnorderedView``
# ``OrderedCollections/OrderedSet/UnorderedView``
<!-- Summary -->
@@ -48,7 +48,7 @@ extension OrderedDictionary {
_values.removeAll(keepingCapacity: keepCapacity)
}
/// Removes and returns the element at the specified position.
/// Removes and returns the key-value pair at the specified index.
///
/// All the elements following the specified position are moved to close the
/// resulting gap.
@@ -658,7 +658,7 @@ extension OrderedDictionary {
/// in a string:
///
/// let message = "Hello, Elle!"
/// var letterCounts: [Character: Int] = [:]
/// var letterCounts: OrderedDictionary<Character, Int> = [:]
/// for letter in message {
/// letterCounts.updateValue(forKey: letter, default: 0) { count in
/// count += 1
@@ -531,7 +531,7 @@ extension OrderedSet {
}
extension OrderedSet {
/// Returns a new ordered set containing the values pairs of the ordered set
/// Returns a new ordered set containing all the members of this ordered set
/// that satisfy the given predicate.
///
/// - Parameter isIncluded: A closure that takes a value as its