Skip to content

Commit a8fd9c4

Browse files
doc: fix format docs discrepancy
Only objects and symbols use `util.inspect`, others are simply concatenated. Fixes: #935
1 parent 8a94581 commit a8fd9c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/api/util.markdown

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ not replaced.
6363
util.format('%s:%s', 'foo'); // 'foo:%s'
6464

6565
If there are more arguments than placeholders, the extra arguments are
66-
converted to strings with `util.inspect()` and these strings are concatenated,
67-
delimited by a space.
66+
coerced to strings (for objects and symbols, `util.inspect()` is used)
67+
and then concatenated, delimited by a space.
6868

6969
util.format('%s:%s', 'foo', 'bar', 'baz'); // 'foo:bar baz'
7070

0 commit comments

Comments
 (0)