doc: correct buffer.slice arg syntax
authorSam Roberts <vieuxtech@gmail.com>
Sun, 13 Sep 2015 13:02:01 +0000 (14:02 +0100)
committerJeremiah Senkpiel <fishrock123@rocketmail.com>
Wed, 16 Sep 2015 20:07:58 +0000 (16:07 -0400)
PR-URL: https://github.com/nodejs/node/pull/2903
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
doc/api/buffer.markdown

index b539953..80941cb 100644 (file)
@@ -364,7 +364,7 @@ region in the same buffer
     // efghijghijklmnopqrstuvwxyz
 
 
-### buf.slice([start][, end])
+### buf.slice([start[, end]])
 
 * `start` Number, Optional, Default: 0
 * `end` Number, Optional, Default: `buffer.length`