From 8bcc8d75ca9104444ac44b9dc74be2382df1245b Mon Sep 17 00:00:00 2001 From: Roy Wright Date: Sat, 20 Mar 2021 17:46:57 +0100 Subject: [PATCH] doc: unambiguously mark deprecated signatures Currently, deprecation notices are always right between two function signatures and it's virtually impossible to be certain whether they refer to the previous signature or the next signature. PR-URL: https://github.com/nodejs/node-addon-api/pull/942 Reviewed-By: Nicola Del Gobbo Reviewed-By: Gabriel Schulhof Reviewed-By: Chengzhong Wu Reviewed-By: Michael Dawson --- doc/property_descriptor.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/property_descriptor.md b/doc/property_descriptor.md index 1a7e4f9..571cff4 100644 --- a/doc/property_descriptor.md +++ b/doc/property_descriptor.md @@ -138,7 +138,7 @@ The name of the property can be any of the following types: - `napi_value value` - `Napi::Name` -**This signature is deprecated. It will result in a memory leak if used.** +**The above signature is deprecated. It will result in a memory leak if used.** ```cpp static Napi::PropertyDescriptor Napi::PropertyDescriptor::Accessor ( @@ -186,7 +186,7 @@ The name of the property can be any of the following types: - `napi_value value` - `Napi::Name` -**This signature is deprecated. It will result in a memory leak if used.** +**The above signature is deprecated. It will result in a memory leak if used.** ```cpp static Napi::PropertyDescriptor Napi::PropertyDescriptor::Accessor ( @@ -236,7 +236,7 @@ The name of the property can be any of the following types: - `napi_value value` - `Napi::Name` -**This signature is deprecated. It will result in a memory leak if used.** +**The above signature is deprecated. It will result in a memory leak if used.** ```cpp static Napi::PropertyDescriptor Napi::PropertyDescriptor::Function (