Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
docs: improve buffer.fill() documentation
Browse files Browse the repository at this point in the history
Fixes #1912.
  • Loading branch information
bnoordhuis committed Oct 20, 2011
1 parent 6cc4292 commit 9bb3a68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/api/buffers.markdown
Expand Up @@ -500,9 +500,9 @@ Example:
// <Buffer 43 eb d5 b7 dd f9 5f d7>
// <Buffer d7 5f f9 dd b7 d5 eb 43>

### buffer.fill(value, offset=0, length=-1)
### buffer.fill(value, offset=0, end=buffer.length)

Fills the buffer with the specified value. If the offset and length are not
Fills the buffer with the specified value. If the offset and end are not
given it will fill the entire buffer.

var b = new Buffer(50);
Expand Down

0 comments on commit 9bb3a68

Please sign in to comment.