Skip to content

Commit

Permalink
Fix: some typos in the document (#825)
Browse files Browse the repository at this point in the history
* Update object_wrap.md
  • Loading branch information
kevindavies8 committed Oct 26, 2020
1 parent 316e909 commit 5c78cf6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/addon.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ The `Napi::Addon<T>` class can be used together with the `NODE_API_ADDON()` and
class ExampleAddon : public Napi::Addon<ExampleAddon> {
public:
ExampleAddon(Napi::Env env, Napi::Object exports) {
// In the constructor we declare the functions the add-on makes avaialable
// In the constructor we declare the functions the add-on makes available
// to JavaScript.
DefineAddon(exports, {
InstanceMethod("increment", &ExampleAddon::Increment),
Expand Down
2 changes: 1 addition & 1 deletion doc/object_wrap.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Napi::Object Example::Init(Napi::Env env, Napi::Object exports) {

Napi::FunctionReference* constructor = new Napi::FunctionReference();

// Create a peristent reference to the class constructor. This will allow
// Create a persistent reference to the class constructor. This will allow
// a function called on a class prototype and a function
// called on instance of a class to be distinguished from each other.
*constructor = Napi::Persistent(func);
Expand Down

0 comments on commit 5c78cf6

Please sign in to comment.