Open
Description
Affected URL(s)
https://nodejs.org/docs/latest-v18.x/api/util.html#utilformatformat-args
Description of the problem
By https://nodejs.org/docs/latest-v18.x/api/util.html#utilformatformat-args has required string argument util.format
.
But in examples we see:
If the first argument does not contain a valid format specifier,
util.format()
returns a string that is the concatenation of all arguments separated by spaces:util.format(1, 2, 3); // Returns: '1 2 3'
Looks like it the same as having optional format
argument.
So it shoud be util.format([format [, ...args]])
instead of util.format(format[, ...args])
.