mirror of
https://github.com/apple/swift-collections
synced 2026-11-26 04:47:48 +00:00
Fix typos: OrderedSet.swift DocC
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user