From fb9b66bdd7fb56435019d5315c675cfacc793b8b Mon Sep 17 00:00:00 2001 From: Jucke Date: Sat, 18 Jul 2020 15:00:36 +0100 Subject: [PATCH] doc: fix typos in n-api, tls and worker_threads PR-URL: https://github.com/nodejs/node/pull/34419 Reviewed-By: Rich Trott Reviewed-By: Luigi Pinca Reviewed-By: Trivikram Kamat Reviewed-By: Anna Henningsen --- doc/api/n-api.md | 2 +- doc/api/tls.md | 6 +++--- doc/api/worker_threads.md | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/api/n-api.md b/doc/api/n-api.md index 75f0c6ac83a620..38f5983868cf74 100644 --- a/doc/api/n-api.md +++ b/doc/api/n-api.md @@ -131,7 +131,7 @@ the native addon will also need to have a C/C++ toolchain installed. For Linux developers, the necessary C/C++ toolchain packages are readily available. [GCC][] is widely used in the Node.js community to build and -test across a variety of plarforms. For many developers, the [LLVM][] +test across a variety of platforms. For many developers, the [LLVM][] compiler infrastructure is also a good choice. For Mac developers, [Xcode][] offers all the required compiler tools. diff --git a/doc/api/tls.md b/doc/api/tls.md index 12d724e4d48f78..c9fabbc5b59cf9 100644 --- a/doc/api/tls.md +++ b/doc/api/tls.md @@ -85,8 +85,8 @@ all sessions). Methods implementing this technique are called "ephemeral". Currently two methods are commonly used to achieve perfect forward secrecy (note the character "E" appended to the traditional abbreviations): -* [DHE][]: An ephemeral version of the Diffie Hellman key-agreement protocol. -* [ECDHE][]: An ephemeral version of the Elliptic Curve Diffie Hellman +* [DHE][]: An ephemeral version of the Diffie-Hellman key-agreement protocol. +* [ECDHE][]: An ephemeral version of the Elliptic Curve Diffie-Hellman key-agreement protocol. Ephemeral methods may have some performance drawbacks, because key generation @@ -1617,7 +1617,7 @@ changes: client certificate. * `crl` {string|string[]|Buffer|Buffer[]} PEM formatted CRLs (Certificate Revocation Lists). - * `dhparam` {string|Buffer} Diffie Hellman parameters, required for + * `dhparam` {string|Buffer} Diffie-Hellman parameters, required for [perfect forward secrecy][]. Use `openssl dhparam` to create the parameters. The key length must be greater than or equal to 1024 bits or else an error will be thrown. Although 1024 bits is permissible, use 2048 bits or larger diff --git a/doc/api/worker_threads.md b/doc/api/worker_threads.md index 864fcca225017e..ad29a54a3ed259 100644 --- a/doc/api/worker_threads.md +++ b/doc/api/worker_threads.md @@ -110,7 +110,7 @@ const { port1 } = new MessageChannel(); port1.postMessage(typedArray1, [ typedArray1.buffer ]); // The following line prints the contents of typedArray1 -- it still owns its -// memory and has been cloned, not transfered. Without `markAsUntransferable()`, +// memory and has been cloned, not transferred. Without `markAsUntransferable()`, // this would print an empty Uint8Array. typedArray2 is intact as well. console.log(typedArray1); console.log(typedArray2);