Browse Source

doc: improved syntax consistency in console.md

`stdout` was written as `inline code` most of the time,
except for the `console.time` and `console.timeEnd`
functions which made it a bit more tedious to read about.
Now it's always using inline code.

PR-URL: https://github.com/nodejs/node/pull/7062
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Robert Jefe Lindstaedt <robert.lindstaedt@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
v7.x
Jonathan Montane 9 years ago
committed by James M Snell
parent
commit
c3e86de9ba
  1. 4
      doc/api/console.md

4
doc/api/console.md

@ -236,7 +236,7 @@ added: v0.1.104
Starts a timer that can be used to compute the duration of an operation. Timers
are identified by a unique `label`. Use the same `label` when you call
[`console.timeEnd()`][] to stop the timer and output the elapsed time in
milliseconds to stdout. Timer durations are accurate to the sub-millisecond.
milliseconds to `stdout`. Timer durations are accurate to the sub-millisecond.
### console.timeEnd(label)
<!-- YAML
@ -244,7 +244,7 @@ added: v0.1.104
-->
Stops a timer that was previously started by calling [`console.time()`][] and
prints the result to stdout:
prints the result to `stdout`:
```js
console.time('100-elements');

Loading…
Cancel
Save