Skip to content

Commit

Permalink
doc: correct return type of Int32Value to int32_t
Browse files Browse the repository at this point in the history
It currently reads uint32_t, which would be very strange, and
is also untrue (I checked napi.h) ;)

PR-URL: nodejs/node-addon-api#459
Reviewed-By: Michael Dawson <[email protected]>
Reviewed-By: NickNaso <[email protected]>
  • Loading branch information
kevindavies8 committed Mar 20, 2019
1 parent 80c00a5 commit a8c0811
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/number.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Creates a new instance of a `Napi::Number` object.

### Int32Value

Converts a `Napi::Number` value to a `uint32_t` primitive type.
Converts a `Napi::Number` value to a `int32_t` primitive type.

```cpp
Napi::Number::Int32Value() const;
Expand Down

0 comments on commit a8c0811

Please sign in to comment.