We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 702e1e3 commit 74da27cCopy full SHA for 74da27c
1 file changed
Sources/SortedArray.swift
@@ -60,7 +60,7 @@ public struct SortedArray<Element> {
60
61
/// Removes an element from the array, preserving the sort order.
62
///
63
- /// - Complexity: O(_log(n)_), where _n_ is the size of the array.
+ /// - Complexity: O(_n_), where _n_ is the size of the array.
64
public mutating func remove(_ element: Element) {
65
guard let index = index(of: element) else { return }
66
_elements.remove(at: index)
0 commit comments