diff --git a/Benchmarks/Sources/CppBenchmarks/src/CustomHash.h b/Benchmarks/Sources/CppBenchmarks/src/CustomHash.h index c8ba3597..f99beb61 100644 --- a/Benchmarks/Sources/CppBenchmarks/src/CustomHash.h +++ b/Benchmarks/Sources/CppBenchmarks/src/CustomHash.h @@ -19,7 +19,7 @@ extern cpp_hash_fn custom_hash_fn; -struct custom_intptr_hash: public std::unary_function +struct custom_intptr_hash: public std::function { std::size_t operator()(intptr_t value) const 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 diff --git a/Sources/OrderedCollections/OrderedSet/OrderedSet.swift b/Sources/OrderedCollections/OrderedSet/OrderedSet.swift index 0934047b..439369ee 100644 --- a/Sources/OrderedCollections/OrderedSet/OrderedSet.swift +++ b/Sources/OrderedCollections/OrderedSet/OrderedSet.swift @@ -53,7 +53,7 @@ import _CollectionsUtilities /// ``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 @@ -103,7 +103,7 @@ import _CollectionsUtilities /// 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 diff --git a/Tests/_CollectionsTestSupport/MinimalTypes/MinimalDecoder.swift b/Tests/_CollectionsTestSupport/MinimalTypes/MinimalDecoder.swift index 4997cacf..63f3d349 100644 --- a/Tests/_CollectionsTestSupport/MinimalTypes/MinimalDecoder.swift +++ b/Tests/_CollectionsTestSupport/MinimalTypes/MinimalDecoder.swift @@ -179,7 +179,13 @@ extension MinimalDecoder.KeyedContainer: KeyedDecodingContainerProtocol { return input[key.stringValue] != nil } +<<<<<<< HEAD:Tests/_CollectionsTestSupport/MinimalTypes/MinimalDecoder.swift func _decode(key: K) throws -> Value { +||||||| 4cab1c1c:Sources/_CollectionsTestSupport/MinimalTypes/MinimalDecoder.swift + func _decode(key: Key) throws -> Value { +======= + func _decode(key: CKey) throws -> Value { +>>>>>>> release/1.0:Sources/_CollectionsTestSupport/MinimalTypes/MinimalDecoder.swift expectTrue(isValid, "Container isn't valid", trapping: true) commitPendingContainer() guard let value = input[key.stringValue] else {