Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix references to Weak and Persistent in docs #428

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 2 additions & 2 deletions doc/function_reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Creates a "weak" reference to the value, in that the initial reference count is
set to 0.

```cpp
static Napi::FunctionReference Napi::FunctionReference::Weak(const Napi::Function& value);
static Napi::FunctionReference Napi::Weak(const Napi::Function& value);
```

- `[in] value`: The value which is to be referenced.
Expand All @@ -36,7 +36,7 @@ Creates a "persistent" reference to the value, in that the initial reference
count is set to 1.

```cpp
static Napi::FunctionReference Napi::FunctionReference::Persistent(const Napi::Function& value);
static Napi::FunctionReference Napi::Persistent(const Napi::Function& value);
```

- `[in] value`: The value which is to be referenced.
Expand Down
4 changes: 2 additions & 2 deletions doc/object_reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ static Napi::ObjectReference Napi::ObjectReference::New(const Napi::Object& valu
Returns the newly created reference.

```cpp
static Napi::ObjectReference Napi::ObjectReference::Weak(const Napi::Object& value);
static Napi::ObjectReference Napi::Weak(const Napi::Object& value);
```

Creates a "weak" reference to the value, in that the initial count of number of references is set to 0.
Expand All @@ -50,7 +50,7 @@ Creates a "weak" reference to the value, in that the initial count of number of
Returns the newly created reference.

```cpp
static Napi::ObjectReference Napi::ObjectReference::Persistent(const Napi::Object& value);
static Napi::ObjectReference Napi::Persistent(const Napi::Object& value);
```

Creates a "persistent" reference to the value, in that the initial count of number of references is set to 1.
Expand Down