Skip to content

Commit d368466

Browse files
committed
Improve doc for Test method
1 parent 4508d4c commit d368466

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

filter.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,13 @@ func (f *Filter) add(h1, h2 uint64) bool {
9696
}
9797

9898
// TestByte tells if b is a likely member of the filter.
99+
// If true, b is probably a member; if false, b is definitely not a member.
99100
func (f *Filter) TestByte(b []byte) bool {
100101
return f.test(hash(b))
101102
}
102103

103104
// Test tells if s is a likely member of the filter.
105+
// If true, s is probably a member; if false, s is definitely not a member.
104106
func (f *Filter) Test(s string) bool {
105107
return f.test(hashString(s))
106108
}

0 commit comments

Comments
 (0)