diff --git a/README.md b/README.md index bdd257b..db52ff1 100644 --- a/README.md +++ b/README.md @@ -144,7 +144,7 @@ or based on a tokenized reference to the subscription. | Param | Type | Description | | --- | --- | --- | -| topic | string | object | Topic's name or subscription referenece | +| topic | string | number | Topic's name or subscription reference | **Example** ```js diff --git a/src/pubsub.js b/src/pubsub.js index e9b5c46..8fbb2d3 100644 --- a/src/pubsub.js +++ b/src/pubsub.js @@ -180,7 +180,7 @@ * * @memberof PubSub * @this {PubSub} - * @param {string|object} topic Topic's name or subscription referenece + * @param {string|number} topic Topic's name or subscription reference * @return {boolean|string} Returns `false` if `topic` does not match a subscribed event; otherwise the topic's name * @example *