Fix typos: OrderedSet.swift DocC

This commit is contained in:
kati-kms committed 2023-11-10 15:38:16 +09:00
1 parent 5193e405bd
commit b72a6cfd93
1 file changed
+2 -2
@@ -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