From 4eb9365d6641ab0aaface2528404d00ec20f98c5 Mon Sep 17 00:00:00 2001 From: Damian Date: Mon, 23 Oct 2017 20:36:31 +0200 Subject: [PATCH] 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 Reviewed-By: Vse Mozhet Byt Reviewed-By: Colin Ihrig --- doc/api/buffer.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api/buffer.md b/doc/api/buffer.md index cc3992b95170d2..0dc86f1c0080fc 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: console.log(buf); -buf.writeUIntLE(0x1234567890ab, 0, 6); +buf.writeIntLE(0x1234567890ab, 0, 6); // Prints: console.log(buf);