diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2011-10-19 18:20:42 -0700 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2011-10-19 18:20:55 -0700 |
commit | 9bb3a683fe9404682ee69bd51e3a06038e2cce34 (patch) | |
tree | 7f78874ffde0a8585fe0010d39fc2c3156a2ab3b /doc | |
parent | 6cc42927d83adf2f89809ff54732e13f9376ff6c (diff) | |
download | node-9bb3a683fe9404682ee69bd51e3a06038e2cce34.tar.gz |
docs: improve buffer.fill() documentation
Fixes #1912.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/api/buffers.markdown | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/api/buffers.markdown b/doc/api/buffers.markdown index c50cc2725..42f13792e 100644 --- a/doc/api/buffers.markdown +++ b/doc/api/buffers.markdown @@ -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); |