Skip to content

Commit fbcc962

Browse files
refackMylesBorins
authored andcommitted
doc: delint
Backport-PR-URL: #19447 PR-URL: #14707 Refs: #12756 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
1 parent b59eddd commit fbcc962

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

doc/api/n-api.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -342,15 +342,15 @@ to be added to the error object. If the optional parameter is NULL
342342
then no code will be associated with the error. If a code is provided,
343343
the name associated with the error is also updated to be:
344344
345-
```
345+
```text
346346
originalName [code]
347347
```
348348

349349
where originalName is the original name associated with the error
350350
and code is the code that was provided. For example if the code
351351
is 'ERR_ERROR_1' and a TypeError is being created the name will be:
352352

353-
```
353+
```text
354354
TypeError [ERR_ERROR_1]
355355
```
356356

@@ -3342,6 +3342,8 @@ support it:
33423342
* If the function is not available, provide an alternate implementation
33433343
that does not use the function.
33443344

3345+
<!-- it's very convenient to have all the anchors indexed -->
3346+
<!--lint disable no-unused-definitions remark-lint-->
33453347
[Asynchronous Operations]: #n_api_asynchronous_operations
33463348
[Basic N-API Data Types]: #n_api_basic_n_api_data_types
33473349
[ECMAScript Language Specification]: https://tc39.github.io/ecma262/

0 commit comments

Comments
 (0)