From 0bc7987806454d8db6ffec46ad9262f0446df4a2 Mon Sep 17 00:00:00 2001 From: Jake Barnes <jakerodneybarnes@gmail.com> Date: Tue, 22 Jan 2019 11:31:18 +1100 Subject: [PATCH] doc: fix references to Weak and Persistent PR-URL: https://github.com/nodejs/node-addon-api/pull/428 Reviewed-By: Nicola Del Gobbo <nicoladelgobbo@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Gabriel Schulhof <gabriel.schulhof@intel.com> --- doc/function_reference.md | 4 ++-- doc/object_reference.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/function_reference.md b/doc/function_reference.md index a7988acb2..7b299b9bb 100644 --- a/doc/function_reference.md +++ b/doc/function_reference.md @@ -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. @@ -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. diff --git a/doc/object_reference.md b/doc/object_reference.md index c08f8beed..6e579e2d7 100644 --- a/doc/object_reference.md +++ b/doc/object_reference.md @@ -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. @@ -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.