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.