Skip to content

Commit a23d452

Browse files
authored
fix bloom-filter.md
1 parent d0e70fc commit a23d452

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: docs/cs-basics/data-structure/bloom-filter.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ public class MyBloomFilter {
148148
*/
149149
public int hash(Object value) {
150150
int h;
151-
return (value == null) ? 0 : Math.abs(seed * (cap - 1) & ((h = value.hashCode()) ^ (h >>> 16)));
151+
return (value == null) ? 0 : Math.abs((cap - 1) & seed * ((h = value.hashCode()) ^ (h >>> 16)));
152152
}
153153

154154
}

0 commit comments

Comments
 (0)