Skip to content

Commit a6d58ec

Browse files
committed
Fixed typo in RadixTree's README
1 parent c648c8f commit a6d58ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Radix-Tree/README.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ The height function returns an Int equal to the highest level in the Tree. An em
3535

3636
The printTree function was used to visualize the tree itself. This function is a little buggy and not perfect yet but gets the job done thus far.
3737

38-
### sharedPrefix(_ str1: String, _ str2: String) ->
38+
### sharedPrefix(_ str1: String, _ str2: String) -> String
3939

4040
The sharedPrefix function is a non-member function in the RadixTree.swift file. It takes in two String objects and returns the shared prefix between them. For example,
4141
sharedPrefix("apples", "oranges") will return "" and sharedPrefix("court", "coral") will return "co". This function is used in the implementation of the find, insert, and remove functions.

0 commit comments

Comments
 (0)