Browse Source

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>
process-exit-stdio-flushing
janriemer 9 years ago
committed by James M Snell
parent
commit
1a21a5368b
  1. 5
      doc/api/buffer.markdown

5
doc/api/buffer.markdown

@ -208,9 +208,6 @@ Example: copy an ASCII string into a buffer, one byte at a time:
// Node.js // Node.js
Returns a boolean indicating whether `this` and `otherBuffer` have the same
bytes.
### buf.compare(otherBuffer) ### buf.compare(otherBuffer)
* `otherBuffer` {Buffer} * `otherBuffer` {Buffer}
@ -267,6 +264,8 @@ region in the same buffer
* `otherBuffer` {Buffer} * `otherBuffer` {Buffer}
Returns a boolean indicating whether `this` and `otherBuffer` have the same bytes.
### buf.fill(value[, offset][, end]) ### buf.fill(value[, offset][, end])
* `value` * `value`

Loading…
Cancel
Save