From f60635aa25733c8899b7843c4fcc48a00850c09b Mon Sep 17 00:00:00 2001 From: Roy Wright Date: Mon, 28 Jan 2019 12:34:58 -0200 Subject: [PATCH] doc: update number.md Update docs to be consistent with how thing are described in other sections. PR-URL: https://github.com/nodejs/node-addon-api/pull/436 Reviewed-By: Gabriel Schulhof Reviewed-By: Michael Dawson --- doc/number.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/doc/number.md b/doc/number.md index fc062a7..f4fd584 100644 --- a/doc/number.md +++ b/doc/number.md @@ -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. @@ -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.