Skip to content

Commit

Permalink
[OrderedDictionary] Explicitly mention in documentation that keys/val…
Browse files Browse the repository at this point in the history
…ues are ordered
  • Loading branch information
warpling committed Dec 19, 2022
1 parent 53a8adc commit fef3839
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -159,7 +159,7 @@
/// original dictionary value.)
///
/// The ``values-swift.property`` collection is a mutable random-access
/// collection of the values in the dictionary:
/// ordered collection of the values in the dictionary:
///
/// d.values // "two", "one", "zero"
/// d.values[2] = "nada"
Expand Down Expand Up @@ -219,15 +219,15 @@ public struct OrderedDictionary<Key: Hashable, Value> {
}

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

/// A mutable collection view containing the values in this dictionary.
/// A mutable collection view containing the ordered values in this dictionary.
///
/// - Complexity: O(1)
@inlinable
Expand Down

0 comments on commit fef3839

Please sign in to comment.