Skip to content

Commit aee3b85

Browse files
Trottrichardlau
authored andcommitted
doc: simplify "make use of" to "use"
PR-URL: #34861 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
1 parent 0e09ff8 commit aee3b85

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

doc/api/addons.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ and load it instead.
421421

422422
## Native abstractions for Node.js
423423

424-
Each of the examples illustrated in this document make direct use of the
424+
Each of the examples illustrated in this document directly use the
425425
Node.js and V8 APIs for implementing addons. The V8 API can, and has, changed
426426
dramatically from one V8 release to the next (and one major Node.js release to
427427
the next). With each change, addons may need to be updated and recompiled in
@@ -495,7 +495,7 @@ The functions available and how to use them are documented in
495495
## Addon examples
496496
497497
Following are some example addons intended to help developers get started. The
498-
examples make use of the V8 APIs. Refer to the online [V8 reference][v8-docs]
498+
examples use the V8 APIs. Refer to the online [V8 reference][v8-docs]
499499
for help with the various V8 calls, and V8's [Embedder's Guide][] for an
500500
explanation of several concepts used such as handles, scopes, function
501501
templates, etc.

doc/api/n-api.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ versions:
111111
```
112112

113113
Thus, for an addon to remain ABI-compatible across Node.js major versions, it
114-
must make use exclusively of N-API by restricting itself to using
114+
must use N-API exclusively by restricting itself to using
115115

116116
```c
117117
#include <node_api.h>
@@ -370,7 +370,7 @@ From the perspective of a native addon this means that the bindings it provides
370370
may be called multiple times, from multiple contexts, and even concurrently from
371371
multiple threads.
372372

373-
Native addons may need to allocate global state of which they make use during
373+
Native addons may need to allocate global state which they use during
374374
their entire life cycle such that the state must be unique to each instance of
375375
the addon.
376376

@@ -5504,7 +5504,7 @@ return status of `napi_closing` in response to a call to
55045504
should be the last API call made in conjunction with a given
55055505
`napi_threadsafe_function`, because after the call completes, there is no
55065506
guarantee that the `napi_threadsafe_function` is still allocated. For the same
5507-
reason, do not make use of a thread-safe function
5507+
reason, do not use a thread-safe function
55085508
after receiving a return value of `napi_closing` in response to a call to
55095509
`napi_call_threadsafe_function`. Data associated with the
55105510
`napi_threadsafe_function` can be freed in its `napi_finalize` callback which
@@ -5527,8 +5527,8 @@ reference count reaches zero. In particular, `napi_call_threadsafe_function()`
55275527
will return `napi_closing`, thus informing the threads that it is no longer
55285528
possible to make asynchronous calls to the thread-safe function. This can be
55295529
used as a criterion for terminating the thread. **Upon receiving a return value
5530-
of `napi_closing` from `napi_call_threadsafe_function()` a thread must make no
5531-
further use of the thread-safe function because it is no longer guaranteed to
5530+
of `napi_closing` from `napi_call_threadsafe_function()` a thread must not use
5531+
the thread-safe function anymore because it is no longer guaranteed to
55325532
be allocated.**
55335533

55345534
### Deciding whether to keep the process running

doc/api/tls.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1718,7 +1718,7 @@ The `tls.createSecureContext()` method creates a `SecureContext` object. It is
17181718
usable as an argument to several `tls` APIs, such as [`tls.createServer()`][]
17191719
and [`server.addContext()`][], but has no public methods.
17201720

1721-
A key is *required* for ciphers that make use of certificates. Either `key` or
1721+
A key is *required* for ciphers that use certificates. Either `key` or
17221722
`pfx` can be used to provide it.
17231723

17241724
If the `ca` option is not given, then Node.js will default to using

0 commit comments

Comments
 (0)