Skip to content

Commit e7e8524

Browse files
mhdawsonevanlucas
authored andcommitted
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 da2b335 commit e7e8524

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
@@ -3283,7 +3283,7 @@ napi_status napi_create_async_work(napi_env env,
32833283
- `[in] env`: The environment that the API is invoked under.
32843284
- `[in] async_resource`: An optional object associated with the async work
32853285
that will be passed to possible async_hooks [`init` hooks][].
3286-
- `[in] async_resource_name`: An identifier for the kind of resource that is
3286+
- `[in] async_resource_name`: Identifier for the kind of resource that is
32873287
being provided for diagnostic information exposed by the `async_hooks` API.
32883288
- `[in] execute`: The native function which should be called to excute
32893289
the logic asynchronously.
@@ -3382,7 +3382,7 @@ napi_status napi_async_init(napi_env env,
33823382
- `[in] env`: The environment that the API is invoked under.
33833383
- `[in] async_resource`: An optional object associated with the async work
33843384
that will be passed to possible `async_hooks` [`init` hooks][].
3385-
- `[in] async_resource_name`: Required identifier for the kind of resource
3385+
- `[in] async_resource_name`: Identifier for the kind of resource
33863386
that is being provided for diagnostic information exposed by the
33873387
`async_hooks` API.
33883388
- `[out] result`: The initialized async context.

0 commit comments

Comments
 (0)