From 101215b82455ee1883718c808a6c6760e155453d Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Fri, 2 Dec 2016 16:42:19 -0600 Subject: [PATCH] doc: correct it's vs. its usage MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix a few instances where `it's` was being used where the possessive `its` was called for. Some additional minor copy-editing of nearby text (adding a comma and fixing a comma splice) was also performed. PR-URL: https://github.com/nodejs/node/pull/10098 Reviewed-By: Anna Henningsen Reviewed-By: Colin Ihrig Reviewed-By: Luigi Pinca Reviewed-By: Michaƫl Zasso Reviewed-By: James M Snell --- doc/api/crypto.md | 4 ++-- doc/api/process.md | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/api/crypto.md b/doc/api/crypto.md index 4471a1e46bc38a..9410b29965d1f5 100644 --- a/doc/api/crypto.md +++ b/doc/api/crypto.md @@ -228,7 +228,7 @@ added: v0.1.94 --> Updates the cipher with `data`. If the `input_encoding` argument is given, -it's value must be one of `'utf8'`, `'ascii'`, or `'latin1'` and the `data` +its value must be one of `'utf8'`, `'ascii'`, or `'latin1'` and the `data` argument is a string using the specified encoding. If the `input_encoding` argument is not given, `data` must be a [`Buffer`][]. If `data` is a [`Buffer`][] then `input_encoding` is ignored. @@ -361,7 +361,7 @@ added: v0.1.94 --> Updates the decipher with `data`. If the `input_encoding` argument is given, -it's value must be one of `'latin1'`, `'base64'`, or `'hex'` and the `data` +its value must be one of `'latin1'`, `'base64'`, or `'hex'` and the `data` argument is a string using the specified encoding. If the `input_encoding` argument is not given, `data` must be a [`Buffer`][]. If `data` is a [`Buffer`][] then `input_encoding` is ignored. diff --git a/doc/api/process.md b/doc/api/process.md index 53218e89a2cafe..e47a95a2226b9f 100644 --- a/doc/api/process.md +++ b/doc/api/process.md @@ -878,7 +878,7 @@ pending* that have not yet completed fully, *including* I/O operations to `process.stdout` and `process.stderr`. In most situations, it is not actually necessary to call `process.exit()` -explicitly. The Node.js process will exit on it's own *if there is no additional +explicitly. The Node.js process will exit on its own *if there is no additional work pending* in the event loop. The `process.exitCode` property can be set to tell the process which exit code to use when the process exits gracefully. @@ -1119,7 +1119,7 @@ added: v0.1.17 The `process.mainModule` property provides an alternative way of retrieving [`require.main`][]. The difference is that if the main module changes at runtime, [`require.main`][] may still refer to the original main module in -modules that were required before the change occurred. Generally it's +modules that were required before the change occurred. Generally, it's safe to assume that the two refer to the same module. As with [`require.main`][], `process.mainModule` will be `undefined` if there @@ -1163,7 +1163,7 @@ The `process.nextTick()` method adds the `callback` to the "next tick queue". Once the current turn of the event loop turn runs to completion, all callbacks currently in the next tick queue will be called. -This is *not* a simple alias to [`setTimeout(fn, 0)`][], it's much more +This is *not* a simple alias to [`setTimeout(fn, 0)`][]. It is much more efficient. It runs before any additional I/O events (including timers) fire in subsequent ticks of the event loop.