doc: fix description of hasSubscribers

PR-URL: https://github.com/nodejs/node/pull/37324
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Harshitha K P <harshitha014@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
This commit is contained in:
Tobias Nießen
2021-02-11 18:46:45 +01:00
committed by Darshan Sen
parent fa3997d75a
commit f2c26153d7

View File

@@ -62,7 +62,7 @@ Check if there are active subscribers to the named channel. This is helpful if
the message you want to send might be expensive to prepare.
This API is optional but helpful when trying to publish messages from very
performance-senstive code.
performance-sensitive code.
```js
const diagnostics_channel = require('diagnostics_channel');
@@ -105,7 +105,7 @@ Check if there are active subscribers to this channel. This is helpful if
the message you want to send might be expensive to prepare.
This API is optional but helpful when trying to publish messages from very
performance-senstive code.
performance-sensitive code.
```js
const diagnostics_channel = require('diagnostics_channel');