Skip to content

Commit

Permalink
doc: fix references to Weak and Persistent
Browse files Browse the repository at this point in the history
PR-URL: #428
Reviewed-By: Nicola Del Gobbo <[email protected]>
Reviewed-By: Michael Dawson <[email protected]>
Reviewed-By: Gabriel Schulhof <[email protected]>
  • Loading branch information
DuBistKomisch authored and Gabriel Schulhof committed Feb 15, 2019
1 parent ad6f569 commit 0bc7987
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
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

0 comments on commit 0bc7987

Please sign in to comment.