Skip to content

Commit de96a06

Browse files
committed
fix typo
1 parent a25856a commit de96a06

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Ordered Set/OrderedSet.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public class OrderedSet<T: Hashable> {
8080
}
8181

8282
// O(1)
83-
// append object (removing any existing other occurence)
83+
// append object (removing any existing other occurrence)
8484
public func ensure_at_end(_ object: T) {
8585
if contains(object) {
8686
remove(object)
@@ -89,7 +89,7 @@ public class OrderedSet<T: Hashable> {
8989
}
9090

9191
// O(n)
92-
// prepend object (removing any existing other occurence)
92+
// prepend object (removing any existing other occurrence)
9393
public func ensure_at_front(_ object: T) {
9494
if contains(object) {
9595
remove(object) // could make this more efficient (at the expense of maintenance complexity) by not delegating to remove() and insert()

0 commit comments

Comments
 (0)