Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorYoshihiro Kikuchi <yknetg@gmail.com>2012-03-12 12:27:44 +0400
committerBen Noordhuis <info@bnoordhuis.nl>2012-03-12 18:04:53 +0400
commitc450ac343f757d95516a42c686ffa7d9f86db099 (patch)
tree4b2473138c1a12b7e1c391a75955d6bbd02b57d8 /doc
parentf8ce384446d38598df53fe18d004baabb65591ff (diff)
docs: fix using legacy api in the buffer doc
Diffstat (limited to 'doc')
-rw-r--r--doc/api/buffer.markdown2
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