Skip to content

Commit

Permalink
Documentation update, Insert.
Browse files Browse the repository at this point in the history
Update the Insert function's documentation to indicate what
the code is doing.
  • Loading branch information
morrowc committed Nov 19, 2019
1 parent 76d601f commit 2edd43f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion radix.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ func longestPrefix(k1, k2 string) int {
}

// Insert is used to add a newentry or update
// an existing entry. Returns if updated.
// an existing entry. Returns true if an existing record is updated.
func (t *Tree) Insert(s string, v interface{}) (interface{}, bool) {
var parent *node
n := t.root
Expand Down

0 comments on commit 2edd43f

Please sign in to comment.