doc: Typo in buffer.markdown referencing buf.write()
authorchrisjohn404 <chris.s.johnson4@gmail.com>
Thu, 17 Dec 2015 08:11:48 +0000 (01:11 -0700)
committerMyles Borins <mborins@us.ibm.com>
Tue, 19 Jan 2016 19:52:25 +0000 (11:52 -0800)
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 <jasnell@gmail.com>
doc/api/buffer.markdown

index afef2fc497899252cff184ed5ea2a9d366fabc16..6fa7f7c99469659e60ccb58222b767b6fe08ea8d 100644 (file)
@@ -598,7 +598,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()