Skip to content

Commit 7df5bb4

Browse files
tniessenDeepak Rajamohan
authored andcommitted
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: nodejs#942 Reviewed-By: Nicola Del Gobbo <nicoladelgobbo@gmail.com> Reviewed-By: Gabriel Schulhof <gabrielschulhof@gmail.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Michael Dawson <midawson@redhat.com>
1 parent 22c67da commit 7df5bb4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/property_descriptor.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ The name of the property can be any of the following types:
138138
- `napi_value value`
139139
- `Napi::Name`
140140

141-
**This signature is deprecated. It will result in a memory leak if used.**
141+
**The above signature is deprecated. It will result in a memory leak if used.**
142142

143143
```cpp
144144
static Napi::PropertyDescriptor Napi::PropertyDescriptor::Accessor (
@@ -186,7 +186,7 @@ The name of the property can be any of the following types:
186186
- `napi_value value`
187187
- `Napi::Name`
188188

189-
**This signature is deprecated. It will result in a memory leak if used.**
189+
**The above signature is deprecated. It will result in a memory leak if used.**
190190

191191
```cpp
192192
static Napi::PropertyDescriptor Napi::PropertyDescriptor::Accessor (
@@ -236,7 +236,7 @@ The name of the property can be any of the following types:
236236
- `napi_value value`
237237
- `Napi::Name`
238238

239-
**This signature is deprecated. It will result in a memory leak if used.**
239+
**The above signature is deprecated. It will result in a memory leak if used.**
240240

241241
```cpp
242242
static Napi::PropertyDescriptor Napi::PropertyDescriptor::Function (

0 commit comments

Comments
 (0)