Skip to content

Commit a5b4526

Browse files
Trottaddaleax
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 1e33bfc commit a5b4526

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

doc/api/addons.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ and load it instead.
412412

413413
## Native abstractions for Node.js
414414

415-
Each of the examples illustrated in this document make direct use of the
415+
Each of the examples illustrated in this document directly use the
416416
Node.js and V8 APIs for implementing addons. The V8 API can, and has, changed
417417
dramatically from one V8 release to the next (and one major Node.js release to
418418
the next). With each change, addons may need to be updated and recompiled in
@@ -486,7 +486,7 @@ The functions available and how to use them are documented in
486486
## Addon examples
487487
488488
Following are some example addons intended to help developers get started. The
489-
examples make use of the V8 APIs. Refer to the online [V8 reference][v8-docs]
489+
examples use the V8 APIs. Refer to the online [V8 reference][v8-docs]
490490
for help with the various V8 calls, and V8's [Embedder's Guide][] for an
491491
explanation of several concepts used such as handles, scopes, function
492492
templates, etc.

doc/api/n-api.md

Lines changed: 5 additions & 5 deletions
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>
@@ -366,7 +366,7 @@ From the perspective of a native addon this means that the bindings it provides
366366
may be called multiple times, from multiple contexts, and even concurrently from
367367
multiple threads.
368368

369-
Native addons may need to allocate global state of which they make use during
369+
Native addons may need to allocate global state which they use during
370370
their entire life cycle such that the state must be unique to each instance of
371371
the addon.
372372

@@ -5163,7 +5163,7 @@ return status of `napi_closing` in response to a call to
51635163
should be the last API call made in conjunction with a given
51645164
`napi_threadsafe_function`, because after the call completes, there is no
51655165
guarantee that the `napi_threadsafe_function` is still allocated. For the same
5166-
reason, do not make use of a thread-safe function
5166+
reason, do not use a thread-safe function
51675167
after receiving a return value of `napi_closing` in response to a call to
51685168
`napi_call_threadsafe_function`. Data associated with the
51695169
`napi_threadsafe_function` can be freed in its `napi_finalize` callback which
@@ -5186,8 +5186,8 @@ reference count reaches zero. In particular, `napi_call_threadsafe_function()`
51865186
will return `napi_closing`, thus informing the threads that it is no longer
51875187
possible to make asynchronous calls to the thread-safe function. This can be
51885188
used as a criterion for terminating the thread. **Upon receiving a return value
5189-
of `napi_closing` from `napi_call_threadsafe_function()` a thread must make no
5190-
further use of the thread-safe function because it is no longer guaranteed to
5189+
of `napi_closing` from `napi_call_threadsafe_function()` a thread must not use
5190+
the thread-safe function anymore because it is no longer guaranteed to
51915191
be allocated.**
51925192

51935193
### Deciding whether to keep the process running

doc/api/tls.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1696,7 +1696,7 @@ The `tls.createSecureContext()` method creates a `SecureContext` object. It is
16961696
usable as an argument to several `tls` APIs, such as [`tls.createServer()`][]
16971697
and [`server.addContext()`][], but has no public methods.
16981698

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

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

0 commit comments

Comments
 (0)