From 9bb3a683fe9404682ee69bd51e3a06038e2cce34 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Wed, 19 Oct 2011 18:20:42 -0700 Subject: [PATCH] docs: improve buffer.fill() documentation Fixes #1912. --- doc/api/buffers.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api/buffers.markdown b/doc/api/buffers.markdown index c50cc27253..42f13792ed 100644 --- a/doc/api/buffers.markdown +++ b/doc/api/buffers.markdown @@ -500,9 +500,9 @@ Example: // // -### 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);