Skip to content

Commit 0bc7987

Browse files
DuBistKomischGabriel Schulhof
authored andcommitted
doc: fix references to Weak and Persistent
PR-URL: #428 Reviewed-By: Nicola Del Gobbo <[email protected]> Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Gabriel Schulhof <[email protected]>
1 parent ad6f569 commit 0bc7987

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

doc/function_reference.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Creates a "weak" reference to the value, in that the initial reference count is
2323
set to 0.
2424

2525
```cpp
26-
static Napi::FunctionReference Napi::FunctionReference::Weak(const Napi::Function& value);
26+
static Napi::FunctionReference Napi::Weak(const Napi::Function& value);
2727
```
2828
2929
- `[in] value`: The value which is to be referenced.
@@ -36,7 +36,7 @@ Creates a "persistent" reference to the value, in that the initial reference
3636
count is set to 1.
3737
3838
```cpp
39-
static Napi::FunctionReference Napi::FunctionReference::Persistent(const Napi::Function& value);
39+
static Napi::FunctionReference Napi::Persistent(const Napi::Function& value);
4040
```
4141

4242
- `[in] value`: The value which is to be referenced.

doc/object_reference.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ static Napi::ObjectReference Napi::ObjectReference::New(const Napi::Object& valu
4040
Returns the newly created reference.
4141

4242
```cpp
43-
static Napi::ObjectReference Napi::ObjectReference::Weak(const Napi::Object& value);
43+
static Napi::ObjectReference Napi::Weak(const Napi::Object& value);
4444
```
4545
4646
Creates a "weak" reference to the value, in that the initial count of number of references is set to 0.
@@ -50,7 +50,7 @@ Creates a "weak" reference to the value, in that the initial count of number of
5050
Returns the newly created reference.
5151
5252
```cpp
53-
static Napi::ObjectReference Napi::ObjectReference::Persistent(const Napi::Object& value);
53+
static Napi::ObjectReference Napi::Persistent(const Napi::Object& value);
5454
```
5555

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

0 commit comments

Comments
 (0)