Skip to content

Commit c21826f

Browse files
grammar changes and setting napiVersion to 4 from pr review
1 parent bb48cac commit c21826f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

doc/api/n-api.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1531,7 +1531,7 @@ structure, in most cases using a `TypedArray` will suffice.
15311531
#### napi_create_date
15321532
<!-- YAML
15331533
added: REPLACEME
1534-
napiVersion: REPLACEME
1534+
napiVersion: 4
15351535
-->
15361536

15371537
> Stability: 1 - Experimental
@@ -2176,7 +2176,7 @@ This API returns various properties of a `DataView`.
21762176
#### napi_get_date_value
21772177
<!-- YAML
21782178
added: REPLACEME
2179-
napiVersion: REPLACEME
2179+
napiVersion: 4
21802180
-->
21812181

21822182
> Stability: 1 - Experimental
@@ -2188,7 +2188,7 @@ napi_status napi_get_date_value(napi_env env,
21882188
```
21892189

21902190
- `[in] env`: The environment that the API is invoked under.
2191-
- `[in] value`: `napi_value` representing JavaScript `Date`.
2191+
- `[in] value`: `napi_value` representing a JavaScript `Date`.
21922192
- `[out] result`: Time value as a `double` represented as milliseconds
21932193
since midnight at the beginning of 01 January, 1970 UTC.
21942194

@@ -2785,7 +2785,7 @@ This API checks if the `Object` passed in is a buffer.
27852785
### napi_is_date
27862786
<!-- YAML
27872787
added: REPLACEME
2788-
napiVersion: REPLACEME
2788+
napiVersion: 4
27892789
-->
27902790

27912791
> Stability: 1 - Experimental
@@ -2796,7 +2796,7 @@ napi_status napi_is_date(napi_env env, napi_value value, bool* result)
27962796

27972797
- `[in] env`: The environment that the API is invoked under.
27982798
- `[in] value`: The JavaScript value to check.
2799-
- `[out] result`: Whether the given `napi_value` represents JavaScript `Date`
2799+
- `[out] result`: Whether the given `napi_value` represents a JavaScript `Date`
28002800
object.
28012801

28022802
Returns `napi_ok` if the API succeeded.

0 commit comments

Comments
 (0)