From 5193e405bd153a42f2abca3552ca05ded81b2ec8 Mon Sep 17 00:00:00 2001 From: kati-kms Date: Thu, 26 Oct 2023 00:40:40 +0900 Subject: [PATCH] Fix typos: OrderedSet.md Documentation --- Documentation/OrderedSet.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/OrderedSet.md b/Documentation/OrderedSet.md index 9786a66e..9d1285d0 100644 --- a/Documentation/OrderedSet.md +++ b/Documentation/OrderedSet.md @@ -55,7 +55,7 @@ high-level set operations such as `union(_:)`, `intersection(_:)` or ```swift 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 @@ -111,7 +111,7 @@ elements to the end of the collection. ```swift 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