Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit cf214e5

Browse filesBrowse files
janriemerMyles Borins
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 <mscdex@mscdex.net> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent fb8e8db commit cf214e5
Copy full SHA for cf214e5

File tree

Expand file treeCollapse file tree

1 file changed

+2
-3
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-3
lines changed
Open diff view settings
Collapse file

‎doc/api/buffer.markdown‎

Copy file name to clipboardExpand all lines: doc/api/buffer.markdown
+2-3Lines changed: 2 additions & 3 deletions
  • Display the source diff
  • Display the rich diff
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.