From 98007192374dc888d51e1c284d1af8aa81e331b5 Mon Sep 17 00:00:00 2001 From: Derek Wolpert <48101033+derekwolpert@users.noreply.github.com> Date: Thu, 17 Feb 2022 09:59:41 -0500 Subject: [PATCH] doc: adjust a/an word usage MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/41915 Reviewed-By: Colin Ihrig Reviewed-By: Tobias Nießen Reviewed-By: Rich Trott Reviewed-By: Mestery --- doc/api/net.md | 2 +- doc/api/process.md | 2 +- doc/api/util.md | 2 +- doc/api/zlib.md | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/api/net.md b/doc/api/net.md index ab2a4338833fa2..4ff825e5668f50 100644 --- a/doc/api/net.md +++ b/doc/api/net.md @@ -1430,7 +1430,7 @@ read by the original process. To begin reading data from a paused socket, call The server can be a TCP server or an [IPC][] server, depending on what it [`listen()`][`server.listen()`] to. -Here is an example of an TCP echo server which listens for connections +Here is an example of a TCP echo server which listens for connections on port 8124: ```js diff --git a/doc/api/process.md b/doc/api/process.md index a648439d9d530e..15de4b2cdb4139 100644 --- a/doc/api/process.md +++ b/doc/api/process.md @@ -340,7 +340,7 @@ changes: * `err` {Error} The uncaught exception. * `origin` {string} Indicates if the exception originates from an unhandled - rejection or from an synchronous error. Can either be `'uncaughtException'` or + rejection or from a synchronous error. Can either be `'uncaughtException'` or `'unhandledRejection'`. The latter is used when in an exception happens in a `Promise` based async context (or if a `Promise` is rejected) and [`--unhandled-rejections`][] flag set to `strict` or `throw` (which is the diff --git a/doc/api/util.md b/doc/api/util.md index 9078f44985b93b..6f320127d3e122 100644 --- a/doc/api/util.md +++ b/doc/api/util.md @@ -1277,7 +1277,7 @@ changes: be removed from the output. This option is only used when `encoding` is `'utf-8'`, `'utf-16be'` or `'utf-16le'`. **Default:** `false`. -Creates an new `TextDecoder` instance. The `encoding` may specify one of the +Creates a new `TextDecoder` instance. The `encoding` may specify one of the supported encodings or an alias. The `TextDecoder` class is also available on the global object. diff --git a/doc/api/zlib.md b/doc/api/zlib.md index 85a0e02efb44e9..77e19cb4d5cf22 100644 --- a/doc/api/zlib.md +++ b/doc/api/zlib.md @@ -128,7 +128,7 @@ The `zlib` module can be used to implement support for the `gzip`, `deflate` and `br` content-encoding mechanisms defined by [HTTP](https://tools.ietf.org/html/rfc7230#section-4.2). -The HTTP [`Accept-Encoding`][] header is used within an http request to identify +The HTTP [`Accept-Encoding`][] header is used within an HTTP request to identify the compression encodings accepted by the client. The [`Content-Encoding`][] header is used to identify the compression encodings actually applied to a message.