Skip to content

Commit 321c178

Browse files
committed
doc: add missing quotes in default string values
PR-URL: #19894 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent ef07d65 commit 321c178

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

doc/api/crypto.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@ added: REPLACEME
678678
- `curve` {string}
679679
- `inputEncoding` {string}
680680
- `outputEncoding` {string}
681-
- `format` {string} **Default:** `uncompressed`
681+
- `format` {string} **Default:** `'uncompressed'`
682682
- Returns: {Buffer | string}
683683

684684
Converts the EC Diffie-Hellman public key specified by `key` and `curve` to the
@@ -757,7 +757,7 @@ its recommended for developers to handle this exception accordingly.
757757
added: v0.11.14
758758
-->
759759
- `encoding` {string}
760-
- `format` {string} **Default:** `uncompressed`
760+
- `format` {string} **Default:** `'uncompressed'`
761761
- Returns: {Buffer | string}
762762

763763
Generates private and public EC Diffie-Hellman key values, and returns
@@ -786,7 +786,7 @@ added: v0.11.14
786786
added: v0.11.14
787787
-->
788788
- `encoding` {string}
789-
- `format` {string} **Default:** `uncompressed`
789+
- `format` {string} **Default:** `'uncompressed'`
790790
- Returns: {Buffer | string} The EC Diffie-Hellman public key in the specified
791791
`encoding` and `format`.
792792

doc/api/http.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1823,9 +1823,9 @@ changes:
18231823
-->
18241824

18251825
* `options` {Object | string | URL}
1826-
* `protocol` {string} Protocol to use. **Default:** `http:`.
1826+
* `protocol` {string} Protocol to use. **Default:** `'http:'`.
18271827
* `host` {string} A domain name or IP address of the server to issue the
1828-
request to. **Default:** `localhost`.
1828+
request to. **Default:** `'localhost'`.
18291829
* `hostname` {string} Alias for `host`. To support [`url.parse()`][],
18301830
`hostname` is preferred over `host`.
18311831
* `family` {number} IP address family to use when resolving `host` and

doc/api/https.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ changes:
160160
-->
161161
- `options` {Object | string | URL} Accepts all `options` from
162162
[`http.request()`][], with some differences in default values:
163-
- `protocol` **Default:** `https:`
163+
- `protocol` **Default:** `'https:'`
164164
- `port` **Default:** `443`
165165
- `agent` **Default:** `https.globalAgent`
166166
- `callback` {Function}

doc/api/process.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,7 @@ added: v8.0.0
700700
* `warning` {string|Error} The warning to emit.
701701
* `options` {Object}
702702
* `type` {string} When `warning` is a String, `type` is the name to use
703-
for the *type* of warning being emitted. **Default:** `Warning`.
703+
for the *type* of warning being emitted. **Default:** `'Warning'`.
704704
* `code` {string} A unique identifier for the warning instance being emitted.
705705
* `ctor` {Function} When `warning` is a String, `ctor` is an optional
706706
function used to limit the generated stack trace. **Default:**
@@ -745,7 +745,7 @@ added: v6.0.0
745745

746746
* `warning` {string|Error} The warning to emit.
747747
* `type` {string} When `warning` is a String, `type` is the name to use
748-
for the *type* of warning being emitted. **Default:** `Warning`.
748+
for the *type* of warning being emitted. **Default:** `'Warning'`.
749749
* `code` {string} A unique identifier for the warning instance being emitted.
750750
* `ctor` {Function} When `warning` is a String, `ctor` is an optional
751751
function used to limit the generated stack trace. **Default:**

doc/api/repl.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ changes:
430430
-->
431431

432432
* `options` {Object|string}
433-
* `prompt` {string} The input prompt to display. **Default:** `> `.
433+
* `prompt` {string} The input prompt to display. **Default:** `'> '`
434434
(with a trailing space).
435435
* `input` {stream.Readable} The Readable stream from which REPL input will be
436436
read. **Default:** `process.stdin`.
@@ -513,8 +513,8 @@ environment variables:
513513
- `NODE_REPL_HISTORY_SIZE` - Controls how many lines of history will be
514514
persisted if history is available. Must be a positive number.
515515
**Default:** `1000`.
516-
- `NODE_REPL_MODE` - May be either `sloppy` or `strict`. **Default:** `sloppy`,
517-
which will allow non-strict mode code to be run.
516+
- `NODE_REPL_MODE` - May be either `'sloppy'` or `'strict'`. **Default:**
517+
`'sloppy'`, which will allow non-strict mode code to be run.
518518

519519
### Persistent History
520520

0 commit comments

Comments
 (0)