From 4bb680de4e2ed3775dce8ff5624e709a1718e752 Mon Sep 17 00:00:00 2001 From: Nikolai Vavilov Date: Mon, 7 Dec 2020 20:58:32 +0200 Subject: [PATCH] Remove misleading sentence (#847) The address-of operator is required for all class members. PR-URL: https://github.com/nodejs/node-addon-api/pull/847 Reviewed-By: Michael Dawson Reviewed-By: Gabriel Schulhof Reviewed-By: NickNaso --- tools/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/README.md b/tools/README.md index a1024d586..6b80e94f5 100644 --- a/tools/README.md +++ b/tools/README.md @@ -48,7 +48,7 @@ and define it as This way, the `Napi::ObjectWrap` constructor will be invoked after the object has been instantiated and `Napi::ObjectWrap` can use the `this` pointer to create a reference to the wrapped object. 2. Move your original constructor code into the new constructor. Delete your original constructor. - 3. In your class initialization function, associate native methods in the following way. The `&` character before methods is required because they are not static methods but instance methods. + 3. In your class initialization function, associate native methods in the following way. ``` Napi::FunctionReference constructor;