Skip to content

Commit 3fc54e6

Browse files
committed
fix
1 parent 6eb7d9a commit 3fc54e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Threaded Binary Tree/ThreadedBinaryTree.playground/Sources/ThreadedBinaryTree.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ extension ThreadedBinaryTree {
120120

121121
Performance: runs in O(h) time, where h is the height of the tree.
122122
*/
123-
public func remove(_ value: T) -> ThreadedBinaryTree? {
123+
@discardableResult public func remove(_ value: T) -> ThreadedBinaryTree? {
124124
return search(value)?.remove()
125125
}
126126

0 commit comments

Comments
 (0)