Skip to content

Commit

Permalink
Merge pull request #439 from chikeichan/332
Browse files Browse the repository at this point in the history
Update API doc types for Bloom filter methods
  • Loading branch information
holgerd77 committed Feb 13, 2019
2 parents 1e6c92d + d7938a0 commit 0232a2e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/bloom/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module.exports = class Bloom {
/**
* adds an element to a bit vector of a 64 byte bloom filter
* @method add
* @param {Buffer} e the element to add
* @param {Buffer|Array|String|Number} e the element to add
*/
add (e) {
e = utils.keccak256(e)
Expand All @@ -39,7 +39,7 @@ module.exports = class Bloom {
/**
* checks if an element is in the bloom
* @method check
* @param {Buffer} e the element to check
* @param {Buffer|Array|String|Number} e the element to check
* @returns {boolean} Returns {@code true} if the element is in the bloom
*/
check (e) {
Expand All @@ -61,7 +61,7 @@ module.exports = class Bloom {
/**
* checks if multiple topics are in a bloom
* @method multiCheck
* @param {Buffer} topics
* @param {Buffer[]|Array[]|String[]|Number[]} topics
* @returns {boolean} Returns {@code true} if every topic is in the bloom
*/
multiCheck (topics) {
Expand Down

0 comments on commit 0232a2e

Please sign in to comment.