Skip to content

Commit f054855

Browse files
committed
doc: remove uannecessary Require
This was the only instance were we said a parameter was required. It is assumed parameters are required unless the doc says they are option. Remove `Required` to make consistent with the rest of the doc PR-URL: #18184 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
1 parent f2e62b5 commit f054855

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/api/n-api.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -3268,7 +3268,7 @@ napi_status napi_create_async_work(napi_env env,
32683268
- `[in] env`: The environment that the API is invoked under.
32693269
- `[in] async_resource`: An optional object associated with the async work
32703270
that will be passed to possible async_hooks [`init` hooks][].
3271-
- `[in] async_resource_name`: An identifier for the kind of resource that is
3271+
- `[in] async_resource_name`: Identifier for the kind of resource that is
32723272
being provided for diagnostic information exposed by the `async_hooks` API.
32733273
- `[in] execute`: The native function which should be called to excute
32743274
the logic asynchronously.
@@ -3367,7 +3367,7 @@ napi_status napi_async_init(napi_env env,
33673367
- `[in] env`: The environment that the API is invoked under.
33683368
- `[in] async_resource`: An optional object associated with the async work
33693369
that will be passed to possible `async_hooks` [`init` hooks][].
3370-
- `[in] async_resource_name`: Required identifier for the kind of resource
3370+
- `[in] async_resource_name`: Identifier for the kind of resource
33713371
that is being provided for diagnostic information exposed by the
33723372
`async_hooks` API.
33733373
- `[out] result`: The initialized async context.

0 commit comments

Comments
 (0)