Hacker News new | ask | show | jobs
Probabilistic Data Structures in Go (antonz.org)
3 points by chmaynard 16 days ago
1 comments

From the Bloom filter example:

    filter.Contains([]byte("alice")) // true
    filter.Contains([]byte("carol")) // false (or, rarely, true)
Seems like the comments should be:

    filter.Contains([]byte("alice")) // true (or, rarely, false)
    filter.Contains([]byte("carol")) // false
Am I missing something?