Skip to content

Commit 70f3935

Browse files
watildeaddaleax
authored andcommitted
doc: fix api docs style
doc/api/async_hooks.md + L198: Missing code-language flag + L239: Missing code-language flag + L317: Missing code-language flag + L347: Missing code-language flag doc/api/fs.md + L2857: Unused definition PR-URL: #13700 Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Michael Dawson <[email protected]>
1 parent 7e3bab7 commit 70f3935

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

doc/api/async_hooks.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ The `type` is a string that represents the type of resource that caused
195195
`init` to be called. Generally, it will correspond to the name of the
196196
resource's constructor.
197197

198-
```
198+
```text
199199
FSEVENTWRAP, FSREQWRAP, GETADDRINFOREQWRAP, GETNAMEINFOREQWRAP, HTTPPARSER,
200200
JSSTREAM, PIPECONNECTWRAP, PIPEWRAP, PROCESSWRAP, QUERYWRAP, SHUTDOWNWRAP,
201201
SIGNALWRAP, STATWATCHER, TCPCONNECTWRAP, TCPWRAP, TIMERWRAP, TTYWRAP,
@@ -236,7 +236,7 @@ require('net').createServer((conn) => {}).listen(8080);
236236

237237
Output when hitting the server with `nc localhost 8080`:
238238

239-
```
239+
```console
240240
TCPWRAP(2): trigger: 1 execution: 1
241241
TCPWRAP(4): trigger: 2 execution: 0
242242
```
@@ -314,7 +314,7 @@ require('net').createServer(() => {}).listen(8080, () => {
314314

315315
Output from only starting the server:
316316

317-
```
317+
```console
318318
TCPWRAP(2): trigger: 1 execution: 1
319319
TickObject(3): trigger: 2 execution: 1
320320
before: 3
@@ -344,7 +344,7 @@ calls to `before` and `after`.
344344

345345
Only using `execution` to graph resource allocation results in the following:
346346

347-
```
347+
```console
348348
TTYWRAP(6) -> Timeout(4) -> TIMERWRAP(5) -> TickObject(3) -> root(1)
349349
```
350350

doc/api/fs.md

-1
Original file line numberDiff line numberDiff line change
@@ -2854,7 +2854,6 @@ The following constants are meant for use with the [`fs.Stats`][] object's
28542854
[Caveats]: #fs_caveats
28552855
[Common System Errors]: errors.html#errors_common_system_errors
28562856
[FS Constants]: #fs_fs_constants_1
2857-
[MDN-Date-getTime]: https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getTime
28582857
[MDN-Date]: https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date
28592858
[MDN-Number]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Number_type
28602859
[MSDN-Rel-Path]: https://msdn.microsoft.com/en-us/library/windows/desktop/aa365247.aspx#fully_qualified_vs._relative_paths

0 commit comments

Comments
 (0)