diff --git a/Sources/OrderedCollections/OrderedCollections.docc/Extensions/OrderedSet.UnorderedView.md b/Sources/OrderedCollections/OrderedCollections.docc/Extensions/OrderedSet.UnorderedView.md index 0b6be3da..b8ef33ba 100644 --- a/Sources/OrderedCollections/OrderedCollections.docc/Extensions/OrderedSet.UnorderedView.md +++ b/Sources/OrderedCollections/OrderedCollections.docc/Extensions/OrderedSet.UnorderedView.md @@ -1,4 +1,4 @@ -# ``Collections/OrderedSet/UnorderedView`` +# ``OrderedCollections/OrderedSet/UnorderedView`` diff --git a/Sources/OrderedCollections/OrderedDictionary/OrderedDictionary+Partial RangeReplaceableCollection.swift b/Sources/OrderedCollections/OrderedDictionary/OrderedDictionary+Partial RangeReplaceableCollection.swift index bc5791ba..a681b813 100644 --- a/Sources/OrderedCollections/OrderedDictionary/OrderedDictionary+Partial RangeReplaceableCollection.swift +++ b/Sources/OrderedCollections/OrderedDictionary/OrderedDictionary+Partial RangeReplaceableCollection.swift @@ -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. diff --git a/Sources/OrderedCollections/OrderedDictionary/OrderedDictionary.swift b/Sources/OrderedCollections/OrderedDictionary/OrderedDictionary.swift index f24fbf2c..3863521c 100644 --- a/Sources/OrderedCollections/OrderedDictionary/OrderedDictionary.swift +++ b/Sources/OrderedCollections/OrderedDictionary/OrderedDictionary.swift @@ -658,7 +658,7 @@ extension OrderedDictionary { /// in a string: /// /// let message = "Hello, Elle!" - /// var letterCounts: [Character: Int] = [:] + /// var letterCounts: OrderedDictionary = [:] /// for letter in message { /// letterCounts.updateValue(forKey: letter, default: 0) { count in /// count += 1 diff --git a/Sources/OrderedCollections/OrderedSet/OrderedSet.swift b/Sources/OrderedCollections/OrderedSet/OrderedSet.swift index bad7d2d2..ac19712d 100644 --- a/Sources/OrderedCollections/OrderedSet/OrderedSet.swift +++ b/Sources/OrderedCollections/OrderedSet/OrderedSet.swift @@ -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