Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
koron committed Feb 20, 2024
1 parent cafd949 commit f9307b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dynamic.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ func (dn *DNode) CountAll() int {
return c
}

// LongestPrefix finds a longest prefix against given s string.
// LongestPrefix finds a longest prefix node/edge matches given s string.
func (dt *DTree) LongestPrefix(s string) (prefix string, edgeID int) {
var last *DNode
ilast := 0
Expand Down
2 changes: 1 addition & 1 deletion static.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ func (st *STree) find(a, b int, c rune) int {
return -1
}

// LongestPrefix finds a longest prefix against given s string.
// LongestPrefix finds a longest prefix node/edge matches given s string.
func (st *STree) LongestPrefix(s string) (prefix string, edgeID int) {
last := -1
ilast := 0
Expand Down

0 comments on commit f9307b4

Please sign in to comment.