Browse Source

docs: fix using legacy api in the buffer doc

v0.9.1-release
Yoshihiro Kikuchi 13 years ago
committed by Ben Noordhuis
parent
commit
c450ac343f
  1. 2
      doc/api/buffer.markdown

2
doc/api/buffer.markdown

@ -156,7 +156,7 @@ buffer object. It does not change when the contents of the buffer are changed.
buf = new Buffer(1234);
console.log(buf.length);
buf.write("some string", "ascii", 0);
buf.write("some string", 0, "ascii");
console.log(buf.length);
// 1234

Loading…
Cancel
Save