summaryrefslogtreecommitdiff
path: root/doc/api/util.md
diff options
context:
space:
mode:
authorRuben Bridgewater <ruben@bridgewater.de>2018-12-12 17:14:41 +0100
committerRuben Bridgewater <ruben@bridgewater.de>2018-12-19 16:31:11 +0100
commit0f58ae392b0f90a64dde5ca48c3937bf5d586214 (patch)
tree2a8a3f1eae7eccdbef85b567eb4a1421cf94891d /doc/api/util.md
parent728b155870b69a83b806d8bee67aeb0fd0a9b2dd (diff)
downloadandroid-node-v8-0f58ae392b0f90a64dde5ca48c3937bf5d586214.tar.gz
android-node-v8-0f58ae392b0f90a64dde5ca48c3937bf5d586214.tar.bz2
android-node-v8-0f58ae392b0f90a64dde5ca48c3937bf5d586214.zip
util: `format()` now formats bigint and booleans
This is necessary to distinguish them from other data types. PR-URL: https://github.com/nodejs/node/pull/25046 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
Diffstat (limited to 'doc/api/util.md')
-rw-r--r--doc/api/util.md3
1 files changed, 1 insertions, 2 deletions
diff --git a/doc/api/util.md b/doc/api/util.md
index 19032aaab2..396667be13 100644
--- a/doc/api/util.md
+++ b/doc/api/util.md
@@ -245,8 +245,7 @@ util.format('%s:%s', 'foo');
```
Values that are not part of the format string are formatted using
-`util.inspect()` if their type is either `'object'`, `'symbol'`, `'function'`
-or `'number'` and using `String()` in all other cases.
+`util.inspect()` if their type is not `string`.
If there are more arguments passed to the `util.format()` method than the
number of specifiers, the extra arguments are concatenated to the returned