diff options
author | Nick Schonning <nschonni@gmail.com> | 2019-08-29 09:28:03 -0400 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2019-08-31 15:31:13 -0700 |
commit | 9ab1e07774b0c38a66e29f4b0b257ded8ee04d08 (patch) | |
tree | 4aa8dbb551d8baa96a6c22e44eb9a39e73f579bf /doc/api/util.md | |
parent | ee8f02b0d752ecf2dfa044deb246e75283d1ca1d (diff) | |
download | android-node-v8-9ab1e07774b0c38a66e29f4b0b257ded8ee04d08.tar.gz android-node-v8-9ab1e07774b0c38a66e29f4b0b257ded8ee04d08.tar.bz2 android-node-v8-9ab1e07774b0c38a66e29f4b0b257ded8ee04d08.zip |
doc: add blanks around code fences
Addresses Markdownlint MD031 rule warnings
PR-URL: https://github.com/nodejs/node/pull/29366
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: David Carlier <devnexen@gmail.com>
Diffstat (limited to 'doc/api/util.md')
-rw-r--r-- | doc/api/util.md | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/api/util.md b/doc/api/util.md index ba98a04534..982d3ebe53 100644 --- a/doc/api/util.md +++ b/doc/api/util.md @@ -101,6 +101,7 @@ where `3245` is the process id. If it is not run with that environment variable set, then it will not print anything. The `section` supports wildcard also: + ```js const util = require('util'); const debuglog = util.debuglog('foo-bar'); @@ -110,6 +111,7 @@ debuglog('hi there, it\'s foo-bar [%d]', 2333); if it is run with `NODE_DEBUG=foo*` in the environment, then it will output something like: + ```txt FOO-BAR 3257: hi there, it's foo-bar [2333] ``` @@ -889,6 +891,7 @@ doSomething[util.promisify.custom] = (foo) => { }); }; ``` + If `promisify.custom` is defined but is not a function, `promisify()` will throw an error. |