Skip to content

Commit 0155784

Browse files
author
Yurii Samsoniuk
authored
Updated README content
1 parent b68b3b9 commit 0155784

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Binary Tree/README.markdown

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,7 @@ extension BinaryTree: CustomStringConvertible {
5858
public var description: String {
5959
switch self {
6060
case let .node(left, value, right):
61-
return "value: \(value), left = [" + left.description + "], right = ["
62-
+ right.description + "]"
61+
return "value: \(value), left = [\(left.description)], right = [\(right.description)]"
6362
case .empty:
6463
return ""
6564
}

0 commit comments

Comments
 (0)