From c450ac343f757d95516a42c686ffa7d9f86db099 Mon Sep 17 00:00:00 2001 From: Yoshihiro Kikuchi Date: Mon, 12 Mar 2012 17:27:44 +0900 Subject: [PATCH] docs: fix using legacy api in the buffer doc --- doc/api/buffer.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/buffer.markdown b/doc/api/buffer.markdown index 0186642..2447869 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 -- 2.7.4