diff --git a/Sources/OrderedCollections/OrderedSet/OrderedSet.swift b/Sources/OrderedCollections/OrderedSet/OrderedSet.swift index 5f0fbf70..2d8d3009 100644 --- a/Sources/OrderedCollections/OrderedSet/OrderedSet.swift +++ b/Sources/OrderedCollections/OrderedSet/OrderedSet.swift @@ -49,7 +49,7 @@ /// ``intersection(_:)-4o09a`` or ``isSubset(of:)-ptij``. /// /// buildingMaterials.contains("glass") // false -/// buildingMaterials.intersection(["brick", "straw"]) // ["straw", "brick"] +/// buildingMaterials.intersection(["bricks", "straw"]) // ["straw", "bricks"] /// /// Operations that return an ordered set usually preserve the ordering of /// elements in their input. For example, in the case of the `intersection` call @@ -99,7 +99,7 @@ /// elements to the end of the collection. /// /// buildingMaterials.unordered.insert("glass") // => inserted: true -/// // buildingMaterials is now ["straw", "sticks", "brick", "glass"] +/// // buildingMaterials is now ["straw", "sticks", "bricks", "glass"] /// /// Accessing the unordered view is an efficient operation, with constant /// (minimal) overhead. Direct mutations of the unordered view (such as the