From 3498ed6c3b460e9c59c37410ea853f759094eaf5 Mon Sep 17 00:00:00 2001 From: "Hargobind S. Khalsa" Date: Sun, 17 Jul 2016 16:01:52 -0600 Subject: [PATCH] doc: correct sample output of buf.compare comparing the buffers `ABC` and `ABCD` returns `-1` not `1`. --- doc/api/buffer.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/buffer.md b/doc/api/buffer.md index bd982dfabafe91..f0104207c50f22 100644 --- a/doc/api/buffer.md +++ b/doc/api/buffer.md @@ -815,7 +815,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));