Skip to content

Commit

Permalink
Change return type to brief type.
Browse files Browse the repository at this point in the history
Fixes :kodecocodes#865

Signed-off-by: bbvch13531 <[email protected]>
  • Loading branch information
bbvch13531 committed Mar 15, 2019
1 parent 3849a1d commit 56e2fc9
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 56e2fc9

Please sign in to comment.