diff --git a/doc/api/buffer.md b/doc/api/buffer.md index 92908fd38b8177..413d5b7167da18 100644 --- a/doc/api/buffer.md +++ b/doc/api/buffer.md @@ -806,7 +806,7 @@ console.log(buf1.compare(buf1)); console.log(buf1.compare(buf2)); // Prints: -1 console.log(buf1.compare(buf3)); - // Prints: 1 + // Prints: -1 console.log(buf2.compare(buf1)); // Prints: 1 console.log(buf2.compare(buf3));