Skip to content

Commit 8981e0c

Browse files
juckecjihrig
authored andcommitted
doc: fix typos in n-api, tls and worker_threads
PR-URL: #34419 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
1 parent fe88c6f commit 8981e0c

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

doc/api/n-api.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ the native addon will also need to have a C/C++ toolchain installed.
127127

128128
For Linux developers, the necessary C/C++ toolchain packages are readily
129129
available. [GCC][] is widely used in the Node.js community to build and
130-
test across a variety of plarforms. For many developers, the [LLVM][]
130+
test across a variety of platforms. For many developers, the [LLVM][]
131131
compiler infrastructure is also a good choice.
132132

133133
For Mac developers, [Xcode][] offers all the required compiler tools.

doc/api/tls.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ all sessions). Methods implementing this technique are called "ephemeral".
8585
Currently two methods are commonly used to achieve perfect forward secrecy (note
8686
the character "E" appended to the traditional abbreviations):
8787

88-
* [DHE][]: An ephemeral version of the Diffie Hellman key-agreement protocol.
89-
* [ECDHE][]: An ephemeral version of the Elliptic Curve Diffie Hellman
88+
* [DHE][]: An ephemeral version of the Diffie-Hellman key-agreement protocol.
89+
* [ECDHE][]: An ephemeral version of the Elliptic Curve Diffie-Hellman
9090
key-agreement protocol.
9191

9292
Ephemeral methods may have some performance drawbacks, because key generation
@@ -1566,7 +1566,7 @@ changes:
15661566
client certificate.
15671567
* `crl` {string|string[]|Buffer|Buffer[]} PEM formatted CRLs (Certificate
15681568
Revocation Lists).
1569-
* `dhparam` {string|Buffer} Diffie Hellman parameters, required for
1569+
* `dhparam` {string|Buffer} Diffie-Hellman parameters, required for
15701570
[perfect forward secrecy][]. Use `openssl dhparam` to create the parameters.
15711571
The key length must be greater than or equal to 1024 bits or else an error
15721572
will be thrown. Although 1024 bits is permissible, use 2048 bits or larger

doc/api/worker_threads.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ const { port1 } = new MessageChannel();
110110
port1.postMessage(typedArray1, [ typedArray1.buffer ]);
111111

112112
// The following line prints the contents of typedArray1 -- it still owns its
113-
// memory and has been cloned, not transfered. Without `markAsUntransferable()`,
113+
// memory and has been cloned, not transferred. Without `markAsUntransferable()`,
114114
// this would print an empty Uint8Array. typedArray2 is intact as well.
115115
console.log(typedArray1);
116116
console.log(typedArray2);

0 commit comments

Comments
 (0)