From 2cbf75da7eba1842c4f2995f926a58db47220b54 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 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);