From a6e437c6199283251df718cab1123f9ecfe021d1 Mon Sep 17 00:00:00 2001 From: Chinedu Francis Nwafili Date: Mon, 15 Feb 2016 21:28:24 -0500 Subject: [PATCH] doc: fix buffer[index] example MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/5253 Reviewed-By: Sakthipriyan Vairamani Reviewed-By: Michaƫl Zasso Reviewed-By: James M Snell Reviewed-By: Roman Reiss --- 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 3163aeac8ebc3d..f79ac7238595a8 100644 --- a/doc/api/buffer.markdown +++ b/doc/api/buffer.markdown @@ -351,7 +351,7 @@ for (var i = 0; i < str.length ; i++) { buf[i] = str.charCodeAt(i); } -console.log(buf); +console.log(buf.toString('ascii')); // Prints: Node.js ```