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: console.log(buf); -buf.writeUIntLE(0x1234567890ab, 0, 6); +buf.writeIntLE(0x1234567890ab, 0, 6); // Prints: console.log(buf);