From f9307b4ad10d9eb6d111c9e70c0c7b55969c9be6 Mon Sep 17 00:00:00 2001 From: MURAOKA Taro Date: Tue, 20 Feb 2024 19:35:15 +0900 Subject: [PATCH] fix comments --- dynamic.go | 2 +- static.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dynamic.go b/dynamic.go index bb66b89..4cb72bf 100644 --- a/dynamic.go +++ b/dynamic.go @@ -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 diff --git a/static.go b/static.go index 2ac0376..bf0a8a5 100644 --- a/static.go +++ b/static.go @@ -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