diff --git a/doc/api/buffer.md b/doc/api/buffer.md index d483fe4033aced..56999a1955d0a1 100644 --- a/doc/api/buffer.md +++ b/doc/api/buffer.md @@ -2145,15 +2145,15 @@ endian). `value` *should* be a valid 64-bit double. Behavior is undefined when ```js const buf = Buffer.allocUnsafe(8); -buf.writeDoubleBE(0xdeadbeefcafebabe, 0); +buf.writeDoubleBE(123.456, 0); console.log(buf); -// Prints: +// Prints: -buf.writeDoubleLE(0xdeadbeefcafebabe, 0); +buf.writeDoubleLE(123.456, 0); console.log(buf); -// Prints: +// Prints: ``` ### buf.writeFloatBE(value, offset)