Skip to content

Commit 1ea846b

Browse files
authored
Merge pull request #275 from lorentey/ordereddictionary-doc-updates
[OrderedDictionary] Explicitly mention in documentation that keys/values are ordered
2 parents 26a7365 + 7f63914 commit 1ea846b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/OrderedCollections/OrderedDictionary/OrderedDictionary.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@
159159
/// original dictionary value.)
160160
///
161161
/// The ``values-swift.property`` collection is a mutable random-access
162-
/// collection of the values in the dictionary:
162+
/// ordered collection of the values in the dictionary:
163163
///
164164
/// d.values // "two", "one", "zero"
165165
/// d.values[2] = "nada"
@@ -219,15 +219,15 @@ public struct OrderedDictionary<Key: Hashable, Value> {
219219
}
220220

221221
extension OrderedDictionary {
222-
/// A read-only collection view for the keys contained in this dictionary, as
222+
/// A read-only ordered collection view for the keys contained in this dictionary, as
223223
/// an `OrderedSet`.
224224
///
225225
/// - Complexity: O(1)
226226
@inlinable
227227
@inline(__always)
228228
public var keys: OrderedSet<Key> { _keys }
229229

230-
/// A mutable collection view containing the values in this dictionary.
230+
/// A mutable collection view containing the ordered values in this dictionary.
231231
///
232232
/// - Complexity: O(1)
233233
@inlinable

0 commit comments

Comments
 (0)