Skip to content

Commit 5b78d2c

Browse files
kawanetBridgeAR
authored andcommitted
doc: remove duplicate whitespaces in doc/api
1 parent acb7351 commit 5b78d2c

File tree

7 files changed

+14
-14
lines changed

7 files changed

+14
-14
lines changed

doc/api/child_process.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -620,8 +620,8 @@ pipes between the parent and child. The value is one of the following:
620620
`'ignore'` will cause Node.js to open `/dev/null` and attach it to the
621621
child's fd.
622622
4. `'inherit'` - Pass through the corresponding stdio stream to/from the
623-
parent process. In the first three positions, this is equivalent to
624-
`process.stdin`, `process.stdout`, and `process.stderr`, respectively. In
623+
parent process. In the first three positions, this is equivalent to
624+
`process.stdin`, `process.stdout`, and `process.stderr`, respectively. In
625625
any other position, equivalent to `'ignore'`.
626626
5. {Stream} object - Share a readable or writable stream that refers to a tty,
627627
file, socket, or a pipe with the child process. The stream's underlying

doc/api/cli.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ see those as two separate modules and would attempt to load the module multiple
274274
times, causing an exception to be thrown).
275275

276276
The `--preserve-symlinks` flag does not apply to the main module, which allows
277-
`node --preserve-symlinks node_module/.bin/<foo>` to work. To apply the same
277+
`node --preserve-symlinks node_module/.bin/<foo>` to work. To apply the same
278278
behavior for the main module, also use `--preserve-symlinks-main`.
279279

280280
### `--preserve-symlinks-main`

doc/api/cluster.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ Node.js process and a cluster worker differs:
9292
the worker to use the supplied handle, rather than talk to the master
9393
process.
9494
3. `server.listen(0)` Normally, this will cause servers to listen on a
95-
random port. However, in a cluster, each worker will receive the
95+
random port. However, in a cluster, each worker will receive the
9696
same "random" port each time they do `listen(0)`. In essence, the
9797
port is random the first time, but predictable thereafter. To listen
9898
on a unique port, generate a port number based on the cluster worker ID.

doc/api/fs.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1486,7 +1486,7 @@ closing naturally.
14861486

14871487
```js
14881488
const fs = require('fs');
1489-
// Create a stream from some character device.
1489+
// Create a stream from some character device.
14901490
const stream = fs.createReadStream('/dev/input/event0');
14911491
setTimeout(() => {
14921492
stream.close(); // This may not close the stream.
@@ -4648,7 +4648,7 @@ The following constants are meant for use with `fs.open()`.
46484648
<td><code>O_NOATIME</code></td>
46494649
<td>Flag indicating reading accesses to the file system will no longer
46504650
result in an update to the <code>atime</code> information associated with
4651-
the file. This flag is available on Linux operating systems only.</td>
4651+
the file. This flag is available on Linux operating systems only.</td>
46524652
</tr>
46534653
<tr>
46544654
<td><code>O_NOFOLLOW</code></td>

doc/api/http2.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -769,7 +769,7 @@ added: v10.12.0
769769

770770
* `origins` {string[]}
771771

772-
The `'origin'` event is emitted whenever an `ORIGIN` frame is received by
772+
The `'origin'` event is emitted whenever an `ORIGIN` frame is received by
773773
the client. The event is emitted with an array of `origin` strings. The
774774
`http2session.originSet` will be updated to include the received
775775
origins.
@@ -1193,7 +1193,7 @@ added: v10.0.0
11931193

11941194
Sends a trailing `HEADERS` frame to the connected HTTP/2 peer. This method
11951195
will cause the `Http2Stream` to be immediately closed and must only be
1196-
called after the `'wantTrailers'` event has been emitted. When sending a
1196+
called after the `'wantTrailers'` event has been emitted. When sending a
11971197
request or sending a response, the `options.waitForTrailers` option must be set
11981198
in order to keep the `Http2Stream` open after the final `DATA` frame so that
11991199
trailers can be sent.
@@ -1729,7 +1729,7 @@ added: v8.4.0
17291729
-->
17301730
* `callback` {Function}
17311731

1732-
Stops the server from accepting new connections. See [`net.Server.close()`][].
1732+
Stops the server from accepting new connections. See [`net.Server.close()`][].
17331733

17341734
Note that this is not analogous to restricting new requests since HTTP/2
17351735
connections are persistent. To achieve a similar graceful shutdown behavior,
@@ -1871,7 +1871,7 @@ added: v8.4.0
18711871
-->
18721872
* `callback` {Function}
18731873

1874-
Stops the server from accepting new connections. See [`tls.Server.close()`][].
1874+
Stops the server from accepting new connections. See [`tls.Server.close()`][].
18751875

18761876
Note that this is not analogous to restricting new requests since HTTP/2
18771877
connections are persistent. To achieve a similar graceful shutdown behavior,
@@ -2531,7 +2531,7 @@ const server = http2.createServer({ settings });
25312531

25322532
Once the client receives the `SETTINGS` frame from the server indicating that
25332533
the extended CONNECT may be used, it may send `CONNECT` requests that use the
2534-
`':protocol'` HTTP/2 pseudo-header:
2534+
`':protocol'` HTTP/2 pseudo-header:
25352535

25362536
```js
25372537
const http2 = require('http2');

doc/api/os.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -891,7 +891,7 @@ The following error constants are exported by `os.constants.errno`:
891891
</tr>
892892
<tr>
893893
<td><code>EOPNOTSUPP</code></td>
894-
<td>Indicates that an operation is not supported on the socket. Note that
894+
<td>Indicates that an operation is not supported on the socket. Note that
895895
while <code>ENOTSUP</code> and <code>EOPNOTSUPP</code> have the same value
896896
on Linux, according to POSIX.1 these error values should be distinct.)</td>
897897
</tr>

doc/api/tls.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,7 @@ the key type.
690690
For RSA keys, the following properties may be defined:
691691
* `bits` {number} The RSA bit size. Example: `1024`.
692692
* `exponent` {string} The RSA exponent, as a string in hexadecimal number
693-
notation. Example: `'0x010001'`.
693+
notation. Example: `'0x010001'`.
694694
* `modulus` {string} The RSA modulus, as a hexadecimal string. Example:
695695
`'B56CE45CB7...'`.
696696
* `pubkey` {Buffer} The public key.
@@ -1139,7 +1139,7 @@ changes:
11391139
`secureProtocol` option, use one or the other. **Default:** `'TLSv1.2'`.
11401140
* `minVersion` {string} Optionally set the minimum TLS version to allow. One
11411141
of `TLSv1.2'`, `'TLSv1.1'`, or `'TLSv1'`. Cannot be specified along with the
1142-
`secureProtocol` option, use one or the other. It is not recommended to use
1142+
`secureProtocol` option, use one or the other. It is not recommended to use
11431143
less than TLSv1.2, but it may be required for interoperability.
11441144
**Default:** `'TLSv1'`.
11451145
* `passphrase` {string} Shared passphrase used for a single private key and/or

0 commit comments

Comments
 (0)