mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
doc: move description of 'equals' method to right place
the description of buffer.equals(otherBuffer) was at the wrong place; move it underneath the method signature PR-URL: https://github.com/nodejs/node/pull/4227 Reviewed-By: Brian White <mscdex@mscdex.net> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
1 parent
be888eac7e
commit
c96dcf12e2
1 file changed
+2
-3
@@ -208,9 +208,6 @@ Example: copy an ASCII string into a buffer, one byte at a time:
|
||||
|
||||
// Node.js
|
||||
|
||||
Returns a boolean indicating whether `this` and `otherBuffer` have the same
|
||||
bytes.
|
||||
|
||||
### buf.compare(otherBuffer)
|
||||
|
||||
* `otherBuffer` {Buffer}
|
||||
@@ -267,6 +264,8 @@ region in the same buffer
|
||||
|
||||
* `otherBuffer` {Buffer}
|
||||
|
||||
Returns a boolean indicating whether `this` and `otherBuffer` have the same bytes.
|
||||
|
||||
### buf.fill(value[, offset][, end])
|
||||
|
||||
* `value`
|
||||
|
||||
Reference in new issue
Block a user