Skip to content

Commit

Permalink
[Docs] fix example to use safer-buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Mar 20, 2018
1 parent ff3f327 commit 48cae12
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion example/all.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
var inspect = require('../');
var Buffer = require('safer-buffer').Buffer;

var holes = [ 'a', 'b' ];
holes[4] = 'e', holes[6] = 'g';
var obj = {
Expand All @@ -8,7 +10,7 @@ var obj = {
d: null,
e: {
regex: /^x/i,
buf: new Buffer('abc'),
buf: Buffer.from('abc'),
holes: holes
},
now: new Date
Expand Down

0 comments on commit 48cae12

Please sign in to comment.