Skip to content

Commit

Permalink
doc: update number.md
Browse files Browse the repository at this point in the history
Update docs to be consistent with how thing are described
in other sections.

PR-URL: #436
Reviewed-By: Gabriel Schulhof <gabriel.schulhof@intel.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
  • Loading branch information
heynemann authored and mhdawson committed Mar 4, 2019
1 parent fcf173d commit 7b87e0b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions doc/number.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Napi::Number(napi_env env, napi_value value);
```
- `[in] env`: The `napi_env` environment in which to construct the `Napi::Number` object.
- `[in] value`: The `napi_value` which is a handle for a JavaScript `Number`.
- `[in] value`: The JavaScript value holding a number.
Returns a non-empty `Napi::Number` object.
Expand All @@ -36,8 +36,9 @@ Napi::Number(napi_env env, napi_value value);
```cpp
Napi::Number Napi::Number::New(napi_env env, double value);
```
- `[in] env`: The `napi_env` environment in which to construct the `Napi::Nuber` object.
- `[in] value`: The `napi_value` which is a handle for a JavaScript `Number`.
- `[in] env`: The `napi_env` environment in which to construct the `Napi::Number` object.
- `[in] value`: The C++ primitive from which to instantiate the `Napi::Number`.


Creates a new instance of a `Napi::Number` object.

Expand Down

0 comments on commit 7b87e0b

Please sign in to comment.