Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
squash: minor fixup
  • Loading branch information
mhdawson committed Nov 2, 2017
commit dc5fee6fd7538cca96e72643c3e2c157d306ce9c
4 changes: 2 additions & 2 deletions doc/api/n-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -3028,7 +3028,7 @@ reference to the class constructor for later `instanceof` checks.

As an example:

```
```C
napi_value MyClass_constructor = nullptr;
status = napi_get_reference_value(env, MyClass::es_constructor, &MyClass_constructor);
assert(napi_ok == status);
Expand All @@ -3042,7 +3042,7 @@ if (is_instance) {
}
```

Of course you also need to make sure to free the reference once it is no longer needed.
Of course the reference must be freed once it is no longer needed.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can drop "Of course"


### *napi_define_class*
<!-- YAML
Expand Down