We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea63430 commit b23ad94Copy full SHA for b23ad94
Tree/README.markdown
@@ -26,7 +26,7 @@ Here's a basic implementation in Swift:
26
public class TreeNode<T> {
27
public var value: T
28
29
- public var parent: TreeNode?
+ public weak var parent: TreeNode?
30
public var children = [TreeNode<T>]()
31
32
public init(value: T) {
0 commit comments