Skip to content

Commit d4d471b

Browse files
authored
Update README.markdown
fix Code syntax error
1 parent a51f98a commit d4d471b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Binary Search Tree/README.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ If there are no more nodes to look at -- when `left` or `right` is nil -- then w
268268
Searching is a recursive process, but you can also implement it with a simple loop instead:
269269

270270
```swift
271-
public func search(value: T) -> BinarySearchTree? {
271+
public func search(_ value: T) -> BinarySearchTree? {
272272
var node: BinarySearchTree? = self
273273
while let n = node {
274274
if value < n.value {

0 commit comments

Comments
 (0)