Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
docs: fix using legacy api in the buffer doc
Browse files Browse the repository at this point in the history
  • Loading branch information
xenyou authored and bnoordhuis committed Mar 12, 2012
1 parent f8ce384 commit c450ac3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/buffer.markdown
Expand Up @@ -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
Expand Down

0 comments on commit c450ac3

Please sign in to comment.