From 54609c642eae6aa8335be7dfafdb6075998914cf Mon Sep 17 00:00:00 2001 From: Ziqiu Zhao <39512431+ZzqiZQute@users.noreply.github.com> Date: Sat, 24 Oct 2020 19:25:45 +0800 Subject: [PATCH 1/2] Update object_wrap.md --- doc/object_wrap.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/object_wrap.md b/doc/object_wrap.md index 7a791df11..7b8fc9c28 100644 --- a/doc/object_wrap.md +++ b/doc/object_wrap.md @@ -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); From 16bcb0b4c8521a4c6d8524c894e7f76946bda0ce Mon Sep 17 00:00:00 2001 From: Ziqiu Zhao <39512431+ZzqiZQute@users.noreply.github.com> Date: Mon, 26 Oct 2020 10:30:34 +0800 Subject: [PATCH 2/2] Update addon.md --- doc/addon.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/addon.md b/doc/addon.md index 26408ae55..96dae718d 100644 --- a/doc/addon.md +++ b/doc/addon.md @@ -34,7 +34,7 @@ The `Napi::Addon` class can be used together with the `NODE_API_ADDON()` and class ExampleAddon : public Napi::Addon { 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),