Skip to content

Commit 7b87e0b

Browse files
heynemannmhdawson
authored andcommitted
doc: update number.md
Update docs to be consistent with how thing are described in other sections. PR-URL: #436 Reviewed-By: Gabriel Schulhof <[email protected]> Reviewed-By: Michael Dawson <[email protected]>
1 parent fcf173d commit 7b87e0b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

doc/number.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Napi::Number(napi_env env, napi_value value);
2525
```
2626
2727
- `[in] env`: The `napi_env` environment in which to construct the `Napi::Number` object.
28-
- `[in] value`: The `napi_value` which is a handle for a JavaScript `Number`.
28+
- `[in] value`: The JavaScript value holding a number.
2929
3030
Returns a non-empty `Napi::Number` object.
3131
@@ -36,8 +36,9 @@ Napi::Number(napi_env env, napi_value value);
3636
```cpp
3737
Napi::Number Napi::Number::New(napi_env env, double value);
3838
```
39-
- `[in] env`: The `napi_env` environment in which to construct the `Napi::Nuber` object.
40-
- `[in] value`: The `napi_value` which is a handle for a JavaScript `Number`.
39+
- `[in] env`: The `napi_env` environment in which to construct the `Napi::Number` object.
40+
- `[in] value`: The C++ primitive from which to instantiate the `Napi::Number`.
41+
4142

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

0 commit comments

Comments
 (0)