mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
doc: fix typos in documentation
Fix typographical errors in API, contributor, and crypto docs. Signed-off-by: sjungwon03 <sjungwon03@gmail.com> PR-URL: https://github.com/nodejs/node/pull/64466 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> Reviewed-By: Jacob Smith <jacob@frende.me>
This commit is contained in:
1 parent
7d8d413ff5
commit
b6dd2debf0
8 files changed
+11
-11
No files matched your search
@@ -4544,7 +4544,7 @@ The `module.register()` API provides off-thread async hooks for customizing ES m
|
||||
the `module.registerHooks()` API provides similar hooks that are synchronous, in-thread, and
|
||||
work for all types of modules.
|
||||
Supporting async hooks has proven to be complex, involving worker threads orchestration, and there are issues
|
||||
that have proven unresolveable. See [caveats of asynchronous customization hooks][]. Please migrate to
|
||||
that have proven unresolvable. See [caveats of asynchronous customization hooks][]. Please migrate to
|
||||
`module.registerHooks()` as soon as possible as `module.register()` will be
|
||||
removed in a future version of Node.js.
|
||||
|
||||
|
||||
+1
-1
@@ -3419,7 +3419,7 @@ import 'package-name'; // supported
|
||||
added: v22.6.0
|
||||
-->
|
||||
|
||||
Type stripping is not supported for files descendent of a `node_modules` directory.
|
||||
Type stripping is not supported for files descendant of a `node_modules` directory.
|
||||
|
||||
<a id="ERR_UNSUPPORTED_RESOLVE_REQUEST"></a>
|
||||
|
||||
|
||||
+3
-3
@@ -4325,7 +4325,7 @@ napi_status napi_strict_equals(napi_env env,
|
||||
Returns `napi_ok` if the API succeeded.
|
||||
|
||||
This API represents the invocation of the Strict Equality algorithm as
|
||||
defined in [Section IsStrctEqual][] of the ECMAScript Language Specification.
|
||||
defined in [Section IsStrictlyEqual][] of the ECMAScript Language Specification.
|
||||
|
||||
### `napi_detach_arraybuffer`
|
||||
|
||||
@@ -4632,7 +4632,7 @@ They can be one or more of the following bit flags:
|
||||
opposed to an instance property, which is the default. This is used only by
|
||||
[`napi_define_class`][]. It is ignored by `napi_define_properties`.
|
||||
* `napi_default_method`: Like a method in a JS class, the property is
|
||||
configurable and writeable, but not enumerable.
|
||||
configurable and writable, but not enumerable.
|
||||
* `napi_default_jsproperty`: Like a property set via assignment in JavaScript,
|
||||
the property is writable, enumerable, and configurable.
|
||||
|
||||
@@ -6982,7 +6982,7 @@ the add-on's file name during loading.
|
||||
[Section DefineOwnProperty]: https://tc39.es/ecma262/#sec-ordinary-object-internal-methods-and-internal-slots-defineownproperty-p-desc
|
||||
[Section Function objects]: https://tc39.es/ecma262/#sec-function-objects
|
||||
[Section IsArray]: https://tc39.es/ecma262/#sec-isarray
|
||||
[Section IsStrctEqual]: https://tc39.es/ecma262/#sec-strict-equality-comparison
|
||||
[Section IsStrictlyEqual]: https://tc39.es/ecma262/#sec-strict-equality-comparison
|
||||
[Section Promise objects]: https://tc39.es/ecma262/#sec-promise-objects
|
||||
[Section SharedArrayBuffer objects]: https://tc39.es/ecma262/#sec-sharedarraybuffer-objects
|
||||
[Section ToBoolean]: https://tc39.es/ecma262/#sec-toboolean
|
||||
|
||||
+2
-2
@@ -3550,7 +3550,7 @@ changes:
|
||||
* `stream` {Stream|ReadableStream|WritableStream} A stream to attach a signal
|
||||
to.
|
||||
|
||||
Attaches an AbortSignal to a readable or writeable stream. This lets code
|
||||
Attaches an AbortSignal to a readable or writable stream. This lets code
|
||||
control stream destruction using an `AbortController`.
|
||||
|
||||
Calling `abort` on the `AbortController` corresponding to the passed
|
||||
@@ -3842,7 +3842,7 @@ const myWritable = new Writable({
|
||||
|
||||
Calling `abort` on the `AbortController` corresponding to the passed
|
||||
`AbortSignal` will behave the same way as calling `.destroy(new AbortError())`
|
||||
on the writeable stream.
|
||||
on the writable stream.
|
||||
|
||||
```js
|
||||
const { Writable } = require('node:stream');
|
||||
|
||||
@@ -196,7 +196,7 @@ Some of the things to highlight include:
|
||||
time we all have other responsibilities that affect how much time we have
|
||||
available to do so.
|
||||
* People are volunteering their time to review your PRs and answer questions in
|
||||
the issues you open. Be mindfull of your asks for their time and acknowledge
|
||||
the issues you open. Be mindful of your asks for their time and acknowledge
|
||||
the gift of their time. Too many issues/PRs in a short period of time may
|
||||
overwhelm maintainers leading to less progress versus more, try to pace your
|
||||
issues and PRs so that you don't have too many open at the same time. The
|
||||
|
||||
@@ -60,7 +60,7 @@ activities, such as applying labels and closing/reopening/assigning issues.
|
||||
For more information on the roles and permissions, see ["Permission levels for
|
||||
repositories owned by an organization"](https://docs.github.com/en/github/setting-up-and-managing-organizations-and-teams/repository-permission-levels-for-an-organization#permission-levels-for-repositories-owned-by-an-organization).
|
||||
|
||||
When triagging issues and PRs:
|
||||
When triaging issues and PRs:
|
||||
|
||||
* Show patience and empathy, especially to first-time contributors.
|
||||
* Show no patience towards spam or troll, close the issue without interacting with it and
|
||||
|
||||
@@ -167,7 +167,7 @@ dependencies.
|
||||
|
||||
The container provides a durable copy of the versions of the tools
|
||||
used for a specific build which are under the control of the Node.js
|
||||
project. In addition, the tools and verions are documented through metadata
|
||||
project. In addition, the tools and versions are documented through metadata
|
||||
within the container in the `/home/node/metadata directory`.
|
||||
|
||||
The available tools can be found by looking at the current version of the
|
||||
|
||||
@@ -4,7 +4,7 @@ Welcome. You've found your way to the Node.js native crypto subsystem.
|
||||
|
||||
Do not be afraid.
|
||||
|
||||
While crypto may be a dark, mysterious, and forboding subject; and while
|
||||
While crypto may be a dark, mysterious, and foreboding subject; and while
|
||||
this directory may be filled with many `*.h` and `*.cc` files, finding
|
||||
your way around is not too difficult. And I can promise you that a Gru
|
||||
will not jump out of the shadows and eat you (well, "promise" may be a
|
||||
|
||||
Reference in new issue
Block a user