Skip to content

Commit 74086e1

Browse files
mhdawsonMylesBorins
authored andcommittedApr 16, 2018
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 Backport-PR-URL: #19447 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 b3806ec commit 74086e1

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

0 commit comments

Comments
 (0)
Please sign in to comment.