doc: fix doc for Buffer.readInt32LE()
authorghaiklor <ghaiklor@gmail.com>
Thu, 24 Mar 2016 18:45:43 +0000 (20:45 +0200)
committerMyles Borins <mborins@us.ibm.com>
Fri, 8 Apr 2016 21:38:57 +0000 (17:38 -0400)
commit6e2bfbe1fd2dde2388df3ed4e0b39cf1e50157b4
tree30dc1f15ad7df7dee446dcbbec2252f398d17ba1
parentd275cdf2021174b3f0aab04c74c5874b6bb10f41
doc: fix doc for Buffer.readInt32LE()

Update example of readInt32LE method. buf.readInt32LE(1) is supposed to
throw an error as it has only four elements and it tries to read 32
bits from three bytes.

Fixes: https://github.com/nodejs/node/issues/5889
PR-URL: https://github.com/nodejs/node/pull/5890
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
doc/api/buffer.markdown