Skip to content

Commit

Permalink
Merge pull request kodecocodes#867 from bbvch13531/patch865-2
Browse files Browse the repository at this point in the history
Change return type to brief type.
  • Loading branch information
richard-ash authored Mar 19, 2019
2 parents 0d5e1b9 + 56e2fc9 commit ea0fd54
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ extension BinarySearchTree {
/*
Finds the node whose value precedes our value in sorted order.
*/
public func predecessor() -> BinarySearchTree<T>? {
public func predecessor() -> BinarySearchTree? {
if let left = left {
return left.maximum()
} else {
Expand All @@ -251,7 +251,7 @@ extension BinarySearchTree {
/*
Finds the node whose value succeeds our value in sorted order.
*/
public func successor() -> BinarySearchTree<T>? {
public func successor() -> BinarySearchTree? {
if let right = right {
return right.minimum()
} else {
Expand Down

0 comments on commit ea0fd54

Please sign in to comment.