Skip to content

Commit

Permalink
Merge pull request #275 from lorentey/ordereddictionary-doc-updates
Browse files Browse the repository at this point in the history
[OrderedDictionary] Explicitly mention in documentation that keys/values are ordered
  • Loading branch information
lorentey committed Apr 11, 2023
2 parents 26a7365 + 7f63914 commit 1ea846b
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 1ea846b

Please sign in to comment.