Skip to content

Commit 61bb789

Browse files
cjihrigcodebytere
authored andcommittedJun 18, 2020
doc: use consistent Default: in events
The API docs have been migrating to **Default:** when providing default values. This commit updates the events documentation page for consistency. PR-URL: #33678 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Juan José Arboleda <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent 1e4edd8 commit 61bb789

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed
 

‎doc/api/events.md

+5-4
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ It supports the following option:
244244

245245
* `captureRejections` {boolean} It enables
246246
[automatic capturing of promise rejection][capturerejections].
247-
Default: `false`.
247+
**Default:** `false`.
248248

249249
### Event: `'newListener'`
250250
<!-- YAML
@@ -1218,11 +1218,12 @@ added: REPLACEME
12181218
* `listener` {Function|EventListener}
12191219
* `options` {Object}
12201220
* `once` {boolean} When `true`, the listener will be automatically removed
1221-
when it is first invoked. *Default*: `false`
1221+
when it is first invoked. **Default:** `false`.
12221222
* `passive` {boolean} When `true`, serves as a hint that the listener will
1223-
not call the `Event` object's `preventDefault()` method. *Default*: `false`
1223+
not call the `Event` object's `preventDefault()` method.
1224+
**Default:** `false`.
12241225
* `capture` {boolean} Not directly used by Node.js. Added for API
1225-
completeness. *Default*: `false`
1226+
completeness. **Default:** `false`.
12261227

12271228
Adds a new handler for the `type` event. Any given `listener` will be added
12281229
only once per `type` and per `capture` option value.

0 commit comments

Comments
 (0)
Please sign in to comment.