Skip to content

Commit

Permalink
documentation changes from pr review
Browse files Browse the repository at this point in the history
  • Loading branch information
jarrodconnolly committed Feb 12, 2019
1 parent 06f7337 commit bb48cac
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions doc/api/n-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -1530,8 +1530,8 @@ structure, in most cases using a `TypedArray` will suffice.

#### napi_create_date
<!-- YAML
added:
napiVersion:
added: REPLACEME
napiVersion: REPLACEME
-->

> Stability: 1 - Experimental
Expand All @@ -1544,11 +1544,11 @@ napi_status napi_create_date(napi_env env,

- `[in] env`: The environment that the API is invoked under.
- `[in] time`: ECMAScript time value in milliseconds since 01 January, 1970 UTC.
- `[out] result`: A `napi_value` representing a `node::Date`.
- `[out] result`: A `napi_value` representing a JavaScript `Date`.

Returns `napi_ok` if the API succeeded.

This API allocates a `node::Date` object.
This API allocates a JavaScript `Date` object.

JavaScript `Date` objects are described in
[Section 20.3][] of the ECMAScript Language Specification.
Expand Down Expand Up @@ -2175,8 +2175,8 @@ This API returns various properties of a `DataView`.

#### napi_get_date_value
<!-- YAML
added:
napiVersion:
added: REPLACEME
napiVersion: REPLACEME
-->

> Stability: 1 - Experimental
Expand Down Expand Up @@ -2784,8 +2784,8 @@ This API checks if the `Object` passed in is a buffer.

### napi_is_date
<!-- YAML
added:
napiVersion:
added: REPLACEME
napiVersion: REPLACEME
-->

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

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

Returns `napi_ok` if the API succeeded.
Expand Down

0 comments on commit bb48cac

Please sign in to comment.