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: https://github.com/nodejs/node/pull/13700
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
This commit is contained in:
Daijiro Wachi 2017-06-15 15:57:00 +02:00
parent 6e69421e53
commit 4ca3b9cd6a
2 changed files with 4 additions and 5 deletions

View File

@ -195,7 +195,7 @@ The `type` is a string that represents the type of resource that caused
`init` to be called. Generally, it will correspond to the name of the `init` to be called. Generally, it will correspond to the name of the
resource's constructor. resource's constructor.
``` ```text
FSEVENTWRAP, FSREQWRAP, GETADDRINFOREQWRAP, GETNAMEINFOREQWRAP, HTTPPARSER, FSEVENTWRAP, FSREQWRAP, GETADDRINFOREQWRAP, GETNAMEINFOREQWRAP, HTTPPARSER,
JSSTREAM, PIPECONNECTWRAP, PIPEWRAP, PROCESSWRAP, QUERYWRAP, SHUTDOWNWRAP, JSSTREAM, PIPECONNECTWRAP, PIPEWRAP, PROCESSWRAP, QUERYWRAP, SHUTDOWNWRAP,
SIGNALWRAP, STATWATCHER, TCPCONNECTWRAP, TCPWRAP, TIMERWRAP, TTYWRAP, SIGNALWRAP, STATWATCHER, TCPCONNECTWRAP, TCPWRAP, TIMERWRAP, TTYWRAP,
@ -236,7 +236,7 @@ require('net').createServer((conn) => {}).listen(8080);
Output when hitting the server with `nc localhost 8080`: Output when hitting the server with `nc localhost 8080`:
``` ```console
TCPWRAP(2): trigger: 1 execution: 1 TCPWRAP(2): trigger: 1 execution: 1
TCPWRAP(4): trigger: 2 execution: 0 TCPWRAP(4): trigger: 2 execution: 0
``` ```
@ -314,7 +314,7 @@ require('net').createServer(() => {}).listen(8080, () => {
Output from only starting the server: Output from only starting the server:
``` ```console
TCPWRAP(2): trigger: 1 execution: 1 TCPWRAP(2): trigger: 1 execution: 1
TickObject(3): trigger: 2 execution: 1 TickObject(3): trigger: 2 execution: 1
before: 3 before: 3
@ -344,7 +344,7 @@ calls to `before` and `after`.
Only using `execution` to graph resource allocation results in the following: Only using `execution` to graph resource allocation results in the following:
``` ```console
TTYWRAP(6) -> Timeout(4) -> TIMERWRAP(5) -> TickObject(3) -> root(1) TTYWRAP(6) -> Timeout(4) -> TIMERWRAP(5) -> TickObject(3) -> root(1)
``` ```

View File

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