diff --git a/doc/api/buffer.markdown b/doc/api/buffer.markdown index f79ac72385..ab1ee5a6c0 100644 --- a/doc/api/buffer.markdown +++ b/doc/api/buffer.markdown @@ -619,7 +619,7 @@ modify the length of a Buffer should therefore treat `length` as read-only and use [`buf.slice()`][] to create a new Buffer. ```js -const buf = new Buffer(10); +var buf = new Buffer(10); buf.write('abcdefghj', 0, 'ascii'); console.log(buf.length); // Prints: 10