projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
44dbe15
)
doc: Typo in buffer.markdown referencing buf.write()
author
chrisjohn404
<chris.s.johnson4@gmail.com>
Thu, 17 Dec 2015 08:11:48 +0000
(
01:11
-0700)
committer
Myles 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
patch
|
blob
|
history
diff --git
a/doc/api/buffer.markdown
b/doc/api/buffer.markdown
index afef2fc497899252cff184ed5ea2a9d366fabc16..6fa7f7c99469659e60ccb58222b767b6fe08ea8d 100644
(file)
--- a/
doc/api/buffer.markdown
+++ b/
doc/api/buffer.markdown
@@
-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 `buf
fer.write()` example, above
.
+See `buf
.write()` example, below
.
### buf.toJSON()