diff --git a/doc/number.md b/doc/number.md index 8226909a8..51a8b7af4 100644 --- a/doc/number.md +++ b/doc/number.md @@ -24,8 +24,9 @@ Creates a new instance of a `Napi::Number` object. Napi::Number(napi_env env, napi_value 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 JavaScript value holding a number. + Returns a non-empty `Napi::Number` object. @@ -36,8 +37,8 @@ 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.