We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4508d4c commit d368466Copy full SHA for d368466
1 file changed
filter.go
@@ -96,11 +96,13 @@ func (f *Filter) add(h1, h2 uint64) bool {
96
}
97
98
// 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.
100
func (f *Filter) TestByte(b []byte) bool {
101
return f.test(hash(b))
102
103
104
// 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.
106
func (f *Filter) Test(s string) bool {
107
return f.test(hashString(s))
108
0 commit comments