Skip to content

Commit 2edd43f

Browse files
committed
Documentation update, Insert.
Update the Insert function's documentation to indicate what the code is doing.
1 parent 76d601f commit 2edd43f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎radix.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ func longestPrefix(k1, k2 string) int {
143143
}
144144

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

0 commit comments

Comments
 (0)