diff options
author | Yoshihiro Kikuchi <yknetg@gmail.com> | 2012-03-12 12:27:44 +0400 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2012-03-12 18:04:53 +0400 |
commit | c450ac343f757d95516a42c686ffa7d9f86db099 (patch) | |
tree | 4b2473138c1a12b7e1c391a75955d6bbd02b57d8 /doc | |
parent | f8ce384446d38598df53fe18d004baabb65591ff (diff) |
docs: fix using legacy api in the buffer doc
Diffstat (limited to 'doc')
-rw-r--r-- | doc/api/buffer.markdown | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/api/buffer.markdown b/doc/api/buffer.markdown index 018664224d9..244786914f4 100644 --- a/doc/api/buffer.markdown +++ b/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 |