Skip to content

Commit 7aecab9

Browse files
committed
Address nits
1 parent 6cba1e6 commit 7aecab9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

doc/api/events.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ Returns a reference to the `EventEmitter` so calls can be chained.
427427
* `listener` {Function} The callback function
428428

429429
Adds a **one time** `listener` function for the event named `eventName` to the
430-
beginning of the listeners array. This listener is invoked only the next time
430+
*beginning* of the listeners array. This listener is invoked only the next time
431431
`eventName` is triggered, after which it is removed.
432432

433433
```js

lib/_stream_readable.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ var StringDecoder;
1212

1313
util.inherits(Readable, Stream);
1414

15-
const has_firston = typeof EE.prototype.prependListener === 'function';
15+
const hasPrependListener = typeof EE.prototype.prependListener === 'function';
1616

1717
function prependListener(emitter, event, fn) {
18-
if (has_firston)
18+
if (hasPrependListener)
1919
return emitter.prependListener(event, fn);
2020

2121
// This is a brutally ugly hack to make sure that our error handler

0 commit comments

Comments
 (0)