GeezerVison is showing github.com — doc: remove duplicate whitespaces in doc/api · nodejs/node@5b78d2c
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: doc/api/child_process.md +2-2Lines changed: 2 additions & 2 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -620,8 +620,8 @@ pipes between the parent and child. The value is one of the following: | 620 | 620 | `'ignore'` will cause Node.js to open `/dev/null` and attach it to the | 621 | 621 | child's fd. | 622 | 622 | 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 | 625 | 625 | any other position, equivalent to `'ignore'`. | 626 | 626 | 5. {Stream} object - Share a readable or writable stream that refers to a tty, | 627 | 627 | file, socket, or a pipe with the child process. The stream's underlying | |
Collapse file Copy file name to clipboardExpand all lines: doc/api/cli.md +1-1Lines changed: 1 addition & 1 deletion - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -274,7 +274,7 @@ see those as two separate modules and would attempt to load the module multiple | 274 | 274 | times, causing an exception to be thrown). | 275 | 275 |
| 276 | 276 | 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 | 278 | 278 | behavior for the main module, also use `--preserve-symlinks-main`. | 279 | 279 |
| 280 | 280 | ### `--preserve-symlinks-main` | |
Collapse file Copy file name to clipboardExpand all lines: doc/api/cluster.md +1-1Lines changed: 1 addition & 1 deletion - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -92,7 +92,7 @@ Node.js process and a cluster worker differs: | 92 | 92 | the worker to use the supplied handle, rather than talk to the master | 93 | 93 | process. | 94 | 94 | 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 | 96 | 96 | same "random" port each time they do `listen(0)`. In essence, the | 97 | 97 | port is random the first time, but predictable thereafter. To listen | 98 | 98 | on a unique port, generate a port number based on the cluster worker ID. | |
Collapse file Copy file name to clipboardExpand all lines: doc/api/fs.md +2-2Lines changed: 2 additions & 2 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1486,7 +1486,7 @@ closing naturally. | 1486 | 1486 |
| 1487 | 1487 | ```js | 1488 | 1488 | const fs = require('fs'); | 1489 | | -// Create a stream from some character device. | | 1489 | +// Create a stream from some character device. | 1490 | 1490 | const stream = fs.createReadStream('/dev/input/event0'); | 1491 | 1491 | setTimeout(() => { | 1492 | 1492 | stream.close(); // This may not close the stream. | @@ -4648,7 +4648,7 @@ The following constants are meant for use with `fs.open()`. | 4648 | 4648 | <td><code>O_NOATIME</code></td> | 4649 | 4649 | <td>Flag indicating reading accesses to the file system will no longer | 4650 | 4650 | 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> | 4652 | 4652 | </tr> | 4653 | 4653 | <tr> | 4654 | 4654 | <td><code>O_NOFOLLOW</code></td> | |
Collapse file Copy file name to clipboardExpand all lines: doc/api/http2.md +5-5Lines changed: 5 additions & 5 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -769,7 +769,7 @@ added: v10.12.0 | 769 | 769 |
| 770 | 770 | * `origins` {string[]} | 771 | 771 |
| 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 | 773 | 773 | the client. The event is emitted with an array of `origin` strings. The | 774 | 774 | `http2session.originSet` will be updated to include the received | 775 | 775 | origins. | @@ -1193,7 +1193,7 @@ added: v10.0.0 | 1193 | 1193 |
| 1194 | 1194 | Sends a trailing `HEADERS` frame to the connected HTTP/2 peer. This method | 1195 | 1195 | 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 | 1197 | 1197 | request or sending a response, the `options.waitForTrailers` option must be set | 1198 | 1198 | in order to keep the `Http2Stream` open after the final `DATA` frame so that | 1199 | 1199 | trailers can be sent. | @@ -1729,7 +1729,7 @@ added: v8.4.0 | 1729 | 1729 | --> | 1730 | 1730 | * `callback` {Function} | 1731 | 1731 |
| 1732 | | -Stops the server from accepting new connections. See [`net.Server.close()`][]. | | 1732 | +Stops the server from accepting new connections. See [`net.Server.close()`][]. | 1733 | 1733 |
| 1734 | 1734 | Note that this is not analogous to restricting new requests since HTTP/2 | 1735 | 1735 | connections are persistent. To achieve a similar graceful shutdown behavior, | @@ -1871,7 +1871,7 @@ added: v8.4.0 | 1871 | 1871 | --> | 1872 | 1872 | * `callback` {Function} | 1873 | 1873 |
| 1874 | | -Stops the server from accepting new connections. See [`tls.Server.close()`][]. | | 1874 | +Stops the server from accepting new connections. See [`tls.Server.close()`][]. | 1875 | 1875 |
| 1876 | 1876 | Note that this is not analogous to restricting new requests since HTTP/2 | 1877 | 1877 | connections are persistent. To achieve a similar graceful shutdown behavior, | @@ -2531,7 +2531,7 @@ const server = http2.createServer({ settings }); | 2531 | 2531 |
| 2532 | 2532 | Once the client receives the `SETTINGS` frame from the server indicating that | 2533 | 2533 | 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: | 2535 | 2535 |
| 2536 | 2536 | ```js | 2537 | 2537 | const http2 = require('http2'); | |
Collapse file Copy file name to clipboardExpand all lines: doc/api/os.md +1-1Lines changed: 1 addition & 1 deletion - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -891,7 +891,7 @@ The following error constants are exported by `os.constants.errno`: | 891 | 891 | </tr> | 892 | 892 | <tr> | 893 | 893 | <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 | 895 | 895 | while <code>ENOTSUP</code> and <code>EOPNOTSUPP</code> have the same value | 896 | 896 | on Linux, according to POSIX.1 these error values should be distinct.)</td> | 897 | 897 | </tr> | |
Collapse file Copy file name to clipboardExpand all lines: doc/api/tls.md +2-2Lines changed: 2 additions & 2 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -690,7 +690,7 @@ the key type. | 690 | 690 | For RSA keys, the following properties may be defined: | 691 | 691 | * `bits` {number} The RSA bit size. Example: `1024`. | 692 | 692 | * `exponent` {string} The RSA exponent, as a string in hexadecimal number | 693 | | - notation. Example: `'0x010001'`. | | 693 | + notation. Example: `'0x010001'`. | 694 | 694 | * `modulus` {string} The RSA modulus, as a hexadecimal string. Example: | 695 | 695 | `'B56CE45CB7...'`. | 696 | 696 | * `pubkey` {Buffer} The public key. | @@ -1139,7 +1139,7 @@ changes: | 1139 | 1139 | `secureProtocol` option, use one or the other. **Default:** `'TLSv1.2'`. | 1140 | 1140 | * `minVersion` {string} Optionally set the minimum TLS version to allow. One | 1141 | 1141 | 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 | 1143 | 1143 | less than TLSv1.2, but it may be required for interoperability. | 1144 | 1144 | **Default:** `'TLSv1'`. | 1145 | 1145 | * `passphrase` {string} Shared passphrase used for a single private key and/or | |
|