summaryrefslogtreecommitdiff
path: root/doc/api/buffer.md
diff options
context:
space:
mode:
authorDamian <damianczapiewski@gmail.com>2017-10-23 20:36:31 +0200
committerVse Mozhet Byt <vsemozhetbyt@gmail.com>2017-10-23 22:55:45 +0300
commit4eb9365d6641ab0aaface2528404d00ec20f98c5 (patch)
tree35d4e9bda43663e67eadf8ec4ede7f3844539d23 /doc/api/buffer.md
parentf16b9c189ae6742912c5ef561e773bfabd222834 (diff)
downloadandroid-node-v8-4eb9365d6641ab0aaface2528404d00ec20f98c5.tar.gz
android-node-v8-4eb9365d6641ab0aaface2528404d00ec20f98c5.tar.bz2
android-node-v8-4eb9365d6641ab0aaface2528404d00ec20f98c5.zip
doc: replace methods used in the example code
Methods `buf.writeUIntLE()` and `buf.writeUIntBE()` were used in the example code for the section of the methods `writeIntLE()` and `writeIntBE()` instead of the latter. PR-URL: https://github.com/nodejs/node/pull/16416 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'doc/api/buffer.md')
-rw-r--r--doc/api/buffer.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/api/buffer.md b/doc/api/buffer.md
index cc3992b951..0dc86f1c00 100644
--- a/doc/api/buffer.md
+++ b/doc/api/buffer.md
@@ -2383,12 +2383,12 @@ Examples:
```js
const buf = Buffer.allocUnsafe(6);
-buf.writeUIntBE(0x1234567890ab, 0, 6);
+buf.writeIntBE(0x1234567890ab, 0, 6);
// Prints: <Buffer 12 34 56 78 90 ab>
console.log(buf);
-buf.writeUIntLE(0x1234567890ab, 0, 6);
+buf.writeIntLE(0x1234567890ab, 0, 6);
// Prints: <Buffer ab 90 78 56 34 12>
console.log(buf);