Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b4d0eeb

Browse files
Trottcodebytere
authored andcommittedJun 27, 2020
doc: use a single space between sentences
We mostly have a single space between the punctuation that ends a sentence and the start of the next sentence. Change instances with two spaces to one. PR-URL: #33995 Reviewed-By: Matheus Marchini <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
1 parent b7690da commit b4d0eeb

12 files changed

+33
-33
lines changed
 

‎doc/api/buffer.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2708,7 +2708,7 @@ it allows injection of numbers where a naively written application that does not
27082708
validate its input sufficiently might expect to always receive a string.
27092709
Before Node.js 8.0.0, the 100 byte buffer might contain
27102710
arbitrary pre-existing in-memory data, so may be used to expose in-memory
2711-
secrets to a remote attacker. Since Node.js 8.0.0, exposure of memory cannot
2711+
secrets to a remote attacker. Since Node.js 8.0.0, exposure of memory cannot
27122712
occur because the data is zero-filled. However, other attacks are still
27132713
possible, such as causing very large buffers to be allocated by the server,
27142714
leading to performance degradation or crashing on memory exhaustion.

‎doc/api/child_process.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ changes:
349349
* `detached` {boolean} Prepare child to run independently of its parent
350350
process. Specific behavior depends on the platform, see
351351
[`options.detached`][]).
352-
* `env` {Object} Environment key-value pairs. **Default:** `process.env`.
352+
* `env` {Object} Environment key-value pairs. **Default:** `process.env`.
353353
* `execPath` {string} Executable used to create the child process.
354354
* `execArgv` {string[]} List of string arguments passed to the executable.
355355
**Default:** `process.execArgv`.
@@ -739,7 +739,7 @@ changes:
739739
* `stdio` {string|Array} Child's stdio configuration. `stderr` by default will
740740
be output to the parent process' stderr unless `stdio` is specified.
741741
**Default:** `'pipe'`.
742-
* `env` {Object} Environment key-value pairs. **Default:** `process.env`.
742+
* `env` {Object} Environment key-value pairs. **Default:** `process.env`.
743743
* `uid` {number} Sets the user identity of the process (see setuid(2)).
744744
* `gid` {number} Sets the group identity of the process (see setgid(2)).
745745
* `timeout` {number} In milliseconds the maximum amount of time the process
@@ -869,7 +869,7 @@ changes:
869869
* `argv0` {string} Explicitly set the value of `argv[0]` sent to the child
870870
process. This will be set to `command` if not specified.
871871
* `stdio` {string|Array} Child's stdio configuration.
872-
* `env` {Object} Environment key-value pairs. **Default:** `process.env`.
872+
* `env` {Object} Environment key-value pairs. **Default:** `process.env`.
873873
* `uid` {number} Sets the user identity of the process (see setuid(2)).
874874
* `gid` {number} Sets the group identity of the process (see setgid(2)).
875875
* `timeout` {number} In milliseconds the maximum amount of time the process

‎doc/api/crypto.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2072,7 +2072,7 @@ added: v0.1.92
20722072
* `options` {Object} [`stream.Writable` options][]
20732073
* Returns: {Sign}
20742074

2075-
Creates and returns a `Sign` object that uses the given `algorithm`. Use
2075+
Creates and returns a `Sign` object that uses the given `algorithm`. Use
20762076
[`crypto.getHashes()`][] to obtain the names of the available digest algorithms.
20772077
Optional `options` argument controls the `stream.Writable` behavior.
20782078

‎doc/api/fs.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -3659,14 +3659,14 @@ changes:
36593659
* `err` {Error}
36603660

36613661
Asynchronous symlink(2) which creates the link called `path` pointing to
3662-
`target`. No arguments other than a possible exception are given to the
3662+
`target`. No arguments other than a possible exception are given to the
36633663
completion callback.
36643664

36653665
The `type` argument is only available on Windows and ignored on other platforms.
36663666
It can be set to `'dir'`, `'file'`, or `'junction'`. If the `type` argument is
36673667
not set, Node.js will autodetect `target` type and use `'file'` or `'dir'`. If
36683668
the `target` does not exist, `'file'` will be used. Windows junction points
3669-
require the destination path to be absolute. When using `'junction'`, the
3669+
require the destination path to be absolute. When using `'junction'`, the
36703670
`target` argument will automatically be normalized to absolute path.
36713671

36723672
Relative targets are relative to the link’s parent directory.
@@ -4280,7 +4280,7 @@ before and/or after the newly written data.
42804280
For example, if `fs.writeFile()` is called twice in a row, first to write the
42814281
string `'Hello'`, then to write the string `', World'`, the file would contain
42824282
`'Hello, World'`, and might contain some of the file's original data (depending
4283-
on the size of the original file, and the position of the file descriptor). If
4283+
on the size of the original file, and the position of the file descriptor). If
42844284
a file name had been used instead of a descriptor, the file would be guaranteed
42854285
to contain only `', World'`.
42864286

‎doc/api/modules.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -165,15 +165,15 @@ require(X) from module at path Y
165165
6. THROW "not found"
166166
167167
LOAD_AS_FILE(X)
168-
1. If X is a file, load X as its file extension format. STOP
169-
2. If X.js is a file, load X.js as JavaScript text. STOP
170-
3. If X.json is a file, parse X.json to a JavaScript Object. STOP
171-
4. If X.node is a file, load X.node as binary addon. STOP
168+
1. If X is a file, load X as its file extension format. STOP
169+
2. If X.js is a file, load X.js as JavaScript text. STOP
170+
3. If X.json is a file, parse X.json to a JavaScript Object. STOP
171+
4. If X.node is a file, load X.node as binary addon. STOP
172172
173173
LOAD_INDEX(X)
174-
1. If X/index.js is a file, load X/index.js as JavaScript text. STOP
174+
1. If X/index.js is a file, load X/index.js as JavaScript text. STOP
175175
2. If X/index.json is a file, parse X/index.json to a JavaScript object. STOP
176-
3. If X/index.node is a file, load X/index.node as binary addon. STOP
176+
3. If X/index.node is a file, load X/index.node as binary addon. STOP
177177
178178
LOAD_AS_DIRECTORY(X)
179179
1. If X/package.json is a file,
@@ -234,7 +234,7 @@ LOAD_PACKAGE_EXPORTS(DIR, X)
234234
a. LOAD_AS_FILE(RESOLVED)
235235
b. LOAD_AS_DIRECTORY(RESOLVED)
236236
12. Otherwise
237-
a. If RESOLVED is a file, load it as its file extension format. STOP
237+
a. If RESOLVED is a file, load it as its file extension format. STOP
238238
13. Throw "not found"
239239
```
240240

‎doc/api/n-api.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ typedef void (*napi_async_execute_callback)(napi_env env, void* data);
651651

652652
Implementations of this function must avoid making N-API calls
653653
that execute JavaScript or interact with
654-
JavaScript objects. N-API
654+
JavaScript objects. N-API
655655
calls should be in the `napi_async_complete_callback` instead.
656656
Do not use the `napi_env` parameter as it will likely
657657
result in execution of JavaScript.

‎doc/api/net.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -721,7 +721,7 @@ added: v6.1.0
721721
If `true`,
722722
[`socket.connect(options[, connectListener])`][`socket.connect(options)`] was
723723
called and has not yet finished. It will stay `true` until the socket becomes
724-
connected, then it is set to `false` and the `'connect'` event is emitted. Note
724+
connected, then it is set to `false` and the `'connect'` event is emitted. Note
725725
that the
726726
[`socket.connect(options[, connectListener])`][`socket.connect(options)`]
727727
callback is a listener for the `'connect'` event.

‎doc/api/process.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ environment variable.
556556

557557
`process.allowedNodeEnvironmentFlags` extends `Set`, but overrides
558558
`Set.prototype.has` to recognize several different possible flag
559-
representations. `process.allowedNodeEnvironmentFlags.has()` will
559+
representations. `process.allowedNodeEnvironmentFlags.has()` will
560560
return `true` in the following cases:
561561

562562
* Flags may omit leading single (`-`) or double (`--`) dashes; e.g.,

‎doc/api/readline.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ The current input data being processed by node.
365365

366366
This can be used when collecting input from a TTY stream to retrieve the
367367
current value that has been processed thus far, prior to the `line` event
368-
being emitted. Once the `line` event has been emitted, this property will
368+
being emitted. Once the `line` event has been emitted, this property will
369369
be an empty string.
370370

371371
Be aware that modifying the value during the instance runtime may have
@@ -399,7 +399,7 @@ added: v0.1.98
399399
The cursor position relative to `rl.line`.
400400

401401
This will track where the current cursor lands in the input string, when
402-
reading input from a TTY stream. The position of cursor determines the
402+
reading input from a TTY stream. The position of cursor determines the
403403
portion of the input string that will be modified as input is processed,
404404
as well as the column where the terminal caret will be rendered.
405405

@@ -415,7 +415,7 @@ added:
415415
* `cols` {number} the screen column the cursor currently lands on
416416

417417
Returns the real position of the cursor in relation to the input
418-
prompt + string. Long input (wrapping) strings, as well as multiple
418+
prompt + string. Long input (wrapping) strings, as well as multiple
419419
line prompts are included in the calculations.
420420

421421
## `readline.clearLine(stream, dir[, callback])`

‎doc/api/stream.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1842,7 +1842,7 @@ changes:
18421842
specified in the [`stream.write()`][stream-write] call) before passing
18431843
them to [`stream._write()`][stream-_write]. Other types of data are not
18441844
converted (i.e. `Buffer`s are not decoded into `string`s). Setting to
1845-
false will prevent `string`s from being converted. **Default:** `true`.
1845+
false will prevent `string`s from being converted. **Default:** `true`.
18461846
* `defaultEncoding` {string} The default encoding that is used when no
18471847
encoding is specified as an argument to [`stream.write()`][stream-write].
18481848
**Default:** `'utf8'`.

‎doc/api/tls.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -321,9 +321,9 @@ in [`tls.createServer()`][], [`tls.connect()`][], and when creating new
321321

322322
The ciphers list can contain a mixture of TLSv1.3 cipher suite names, the ones
323323
that start with `'TLS_'`, and specifications for TLSv1.2 and below cipher
324-
suites. The TLSv1.2 ciphers support a legacy specification format, consult
324+
suites. The TLSv1.2 ciphers support a legacy specification format, consult
325325
the OpenSSL [cipher list format][] documentation for details, but those
326-
specifications do *not* apply to TLSv1.3 ciphers. The TLSv1.3 suites can only
326+
specifications do *not* apply to TLSv1.3 ciphers. The TLSv1.3 suites can only
327327
be enabled by including their full name in the cipher list. They cannot, for
328328
example, be enabled or disabled by using the legacy TLSv1.2 `'EECDH'` or
329329
`'!EECDH'` specification.
@@ -768,12 +768,12 @@ On the client, the `session` can be provided to the `session` option of
768768
See [Session Resumption][] for more information.
769769

770770
For TLSv1.2 and below, [`tls.TLSSocket.getSession()`][] can be called once
771-
the handshake is complete. For TLSv1.3, only ticket-based resumption is allowed
771+
the handshake is complete. For TLSv1.3, only ticket-based resumption is allowed
772772
by the protocol, multiple tickets are sent, and the tickets aren't sent until
773773
after the handshake completes. So it is necessary to wait for the
774-
`'session'` event to get a resumable session. Applications
774+
`'session'` event to get a resumable session. Applications
775775
should use the `'session'` event instead of `getSession()` to ensure
776-
they will work for all TLS versions. Applications that only expect to
776+
they will work for all TLS versions. Applications that only expect to
777777
get or use one session should listen for this event only once:
778778

779779
```js
@@ -1623,11 +1623,11 @@ changes:
16231623
[OpenSSL Options][].
16241624
* `secureProtocol` {string} Legacy mechanism to select the TLS protocol
16251625
version to use, it does not support independent control of the minimum and
1626-
maximum version, and does not support limiting the protocol to TLSv1.3. Use
1627-
`minVersion` and `maxVersion` instead. The possible values are listed as
1628-
[SSL_METHODS][], use the function names as strings. For example, use
1626+
maximum version, and does not support limiting the protocol to TLSv1.3. Use
1627+
`minVersion` and `maxVersion` instead. The possible values are listed as
1628+
[SSL_METHODS][], use the function names as strings. For example, use
16291629
`'TLSv1_1_method'` to force TLS version 1.1, or `'TLS_method'` to allow any
1630-
TLS protocol version up to TLSv1.3. It is not recommended to use TLS
1630+
TLS protocol version up to TLSv1.3. It is not recommended to use TLS
16311631
versions less than 1.2, but it may be required for interoperability.
16321632
**Default:** none, see `minVersion`.
16331633
* `sessionIdContext` {string} Opaque identifier used by servers to ensure
@@ -1825,7 +1825,7 @@ added: v11.4.0
18251825
[`tls.createSecureContext()`][]. It can be assigned any of the supported TLS
18261826
protocol versions, `'TLSv1.3'`, `'TLSv1.2'`, `'TLSv1.1'`, or `'TLSv1'`.
18271827
**Default:** `'TLSv1.3'`, unless changed using CLI options. Using
1828-
`--tls-max-v1.2` sets the default to `'TLSv1.2'`. Using `--tls-max-v1.3` sets
1828+
`--tls-max-v1.2` sets the default to `'TLSv1.2'`. Using `--tls-max-v1.3` sets
18291829
the default to `'TLSv1.3'`. If multiple of the options are provided, the
18301830
highest maximum is used.
18311831

‎doc/api/util.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1267,7 +1267,7 @@ added: v10.0.0
12671267
* Returns: {boolean}
12681268

12691269
Returns `true` if the value is an instance of one of the [`ArrayBuffer`][]
1270-
views, such as typed array objects or [`DataView`][]. Equivalent to
1270+
views, such as typed array objects or [`DataView`][]. Equivalent to
12711271
[`ArrayBuffer.isView()`][].
12721272

12731273
```js

0 commit comments

Comments
 (0)
Please sign in to comment.