Skip to content

Commit 4216d2a

Browse files
authored
Merge pull request #478 from ozumin/patch-1
fix comment for OrderedSet.appending(contentsOf:)
2 parents 4d5a06f + 1812091 commit 4216d2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/OrderedCollections/OrderedSet/OrderedSet+Partial SetAlgebra union.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ extension OrderedSet {
8787
///
8888
/// let a: OrderedSet = [1, 2, 3, 4]
8989
/// let b: OrderedSet = [0, 2, 4, 6]
90-
/// a.union(b) // [1, 2, 3, 4, 0, 6]
90+
/// a.appending(contentsOf: b) // [1, 2, 3, 4, 0, 6]
9191
///
9292
/// This is functionally equivalent to `self.union(elements)`, but it's
9393
/// more explicit about how the new members are ordered in the new set.

0 commit comments

Comments
 (0)