From ce3cbace437357a405b02de4b1968de2b7fe3067 Mon Sep 17 00:00:00 2001 From: Damian Date: Mon, 23 Oct 2017 20:36:31 +0200 Subject: [PATCH] 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. --- 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);