Skip to content

Commit 8983383

Browse files
authored
Fix: some typos in the document (#825)
* Update object_wrap.md
1 parent 826e466 commit 8983383

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

doc/addon.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ The `Napi::Addon<T>` class can be used together with the `NODE_API_ADDON()` and
3434
class ExampleAddon : public Napi::Addon<ExampleAddon> {
3535
public:
3636
ExampleAddon(Napi::Env env, Napi::Object exports) {
37-
// In the constructor we declare the functions the add-on makes avaialable
37+
// In the constructor we declare the functions the add-on makes available
3838
// to JavaScript.
3939
DefineAddon(exports, {
4040
InstanceMethod("increment", &ExampleAddon::Increment),

doc/object_wrap.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Napi::Object Example::Init(Napi::Env env, Napi::Object exports) {
4343

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

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

0 commit comments

Comments
 (0)