docs: fix using legacy api in the buffer doc

This commit is contained in:
Yoshihiro Kikuchi 2012-03-12 17:27:44 +09:00 committed by Ben Noordhuis
parent f8ce384446
commit c450ac343f

View File

@ -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