From 5b50501395ebe9dd1fc33aa792e8d5a54a78cfb4 Mon Sep 17 00:00:00 2001 From: Michael Dawson Date: Fri, 26 May 2017 13:51:15 -0400 Subject: [PATCH] doc: make spelling of behavior consistent MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In the api docs there were some instances of behaviour and many more with behavior. I was asked as part of a review on a different PR which one to use and went with behavior to be consistent with the majority. Our style guide states that American English spelling is preferred. PR-URL: https://github.com/nodejs/node/pull/13245 Reviewed-By: Alexey Orlenko Reviewed-By: Colin Ihrig Reviewed-By: Rich Trott Reviewed-By: Luigi Pinca Reviewed-By: Michaƫl Zasso Reviewed-By: Kunal Pathak --- doc/api/crypto.md | 2 +- doc/api/process.md | 2 +- doc/api/tls.md | 2 +- doc/api/util.md | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/api/crypto.md b/doc/api/crypto.md index 5eae3f564830c6..c08b676e776c9b 100644 --- a/doc/api/crypto.md +++ b/doc/api/crypto.md @@ -1901,7 +1901,7 @@ the `crypto`, `tls`, and `https` modules and are generally specific to OpenSSL. SSL_OP_CIPHER_SERVER_PREFERENCE Attempts to use the server's preferences instead of the client's when - selecting a cipher. Behaviour depends on protocol version. See + selecting a cipher. Behavior depends on protocol version. See https://www.openssl.org/docs/man1.0.2/ssl/SSL_CTX_set_options.html. diff --git a/doc/api/process.md b/doc/api/process.md index fda57bf431c176..44b6f6b8e16c96 100644 --- a/doc/api/process.md +++ b/doc/api/process.md @@ -1635,7 +1635,7 @@ important ways: - TTYs (Terminals): *asynchronous* on Windows, *synchronous* on Unix - Pipes (and sockets): *synchronous* on Windows, *asynchronous* on Unix -These behaviours are partly for historical reasons, as changing them would +These behaviors are partly for historical reasons, as changing them would create backwards incompatibility, but they are also expected by some users. Synchronous writes avoid problems such as output written with `console.log()` or diff --git a/doc/api/tls.md b/doc/api/tls.md index ba1cb5a6975c01..cfec1b64e221e3 100644 --- a/doc/api/tls.md +++ b/doc/api/tls.md @@ -982,7 +982,7 @@ changes: `"SSLv23_method"`. The possible values are listed as [SSL_METHODS][], use the function names as strings. For example, `"SSLv3_method"` to force SSL version 3. - * `secureOptions` {number} Optionally affect the OpenSSL protocol behaviour, + * `secureOptions` {number} Optionally affect the OpenSSL protocol behavior, which is not usually necessary. This should be used carefully if at all! Value is a numeric bitmask of the `SSL_OP_*` options from [OpenSSL Options][]. diff --git a/doc/api/util.md b/doc/api/util.md index 07d230886b9342..ba494263484812 100644 --- a/doc/api/util.md +++ b/doc/api/util.md @@ -443,7 +443,7 @@ will return its value, see [Custom promisified functions][]. `promisify()` assumes that `original` is a function taking a callback as its final argument in all cases, and the returned function will result in undefined -behaviour if it does not. +behavior if it does not. ### Custom promisified functions