Skip to content

Commit 1a21a53

Browse files
janriemerjasnell
authored andcommitted
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: #4227 Reviewed-By: Brian White <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 9a9c525 commit 1a21a53

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

doc/api/buffer.markdown

+2-3
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,6 @@ Example: copy an ASCII string into a buffer, one byte at a time:
208208

209209
// Node.js
210210

211-
Returns a boolean indicating whether `this` and `otherBuffer` have the same
212-
bytes.
213-
214211
### buf.compare(otherBuffer)
215212

216213
* `otherBuffer` {Buffer}
@@ -267,6 +264,8 @@ region in the same buffer
267264

268265
* `otherBuffer` {Buffer}
269266

267+
Returns a boolean indicating whether `this` and `otherBuffer` have the same bytes.
268+
270269
### buf.fill(value[, offset][, end])
271270

272271
* `value`

0 commit comments

Comments
 (0)