Skip to content

Commit

Permalink
doc: fix outdated util inspect layout example
Browse files Browse the repository at this point in the history
The layout was not up to date with the latest changes.

Signed-off-by: Ruben Bridgewater <ruben@bridgewater.de>
  • Loading branch information
BridgeAR committed Jan 26, 2021
1 parent bc52bd5 commit 0027ce7
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions doc/api/util.md
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ const util = require('util');

const o = {
a: [1, 2, [[
'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do ' +
'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed \ndo ' +
'eiusmod tempor incididunt ut labore et dolore magna aliqua.',
'test',
'foo']], 4],
Expand All @@ -656,10 +656,8 @@ console.log(util.inspect(o, { compact: false, depth: 5, breakLength: 80 }));
// 2,
// [
// [
// 'Lorem ipsum dolor sit amet, consectetur ' +
// 'adipiscing elit, sed do eiusmod tempor ' +
// 'incididunt ut labore et dolore magna ' +
// 'aliqua.,
// 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed \n' +
// 'do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
// 'test',
// 'foo'
// ]
Expand Down

0 comments on commit 0027ce7

Please sign in to comment.