diff --git a/doc/api/buffer.md b/doc/api/buffer.md index a561f0c6cc932e..442ed6204e3fab 100644 --- a/doc/api/buffer.md +++ b/doc/api/buffer.md @@ -2408,12 +2408,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);