From 1dd09a8fbab94db1c12fad8056d759a5ac64cf35 Mon Sep 17 00:00:00 2001 From: chrisjohn404 Date: Thu, 17 Dec 2015 01:11:48 -0700 Subject: [PATCH] doc: Typo in buffer.markdown referencing buf.write() The buffer's write function is documented below the buf.toString function and all of the docs reference "buf" instead of "buffer". PR-URL: https://github.com/nodejs/node/pull/4324 Reviewed-By: James M Snell --- 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 9fd57040816447..cd28ce20239206 100644 --- a/doc/api/buffer.markdown +++ b/doc/api/buffer.markdown @@ -611,7 +611,7 @@ defaults to `'utf8'`. The `start` and `end` parameters default to `0` and buf.toString('utf8',0,5); // outputs: abcde buf.toString(undefined,0,5); // encoding defaults to 'utf8', outputs abcde -See `buffer.write()` example, above. +See `buf.write()` example, below. ### buf.toJSON()