From 9c2ebacb83adc1ad7443b730a75b56d2ef7983d1 Mon Sep 17 00:00:00 2001 From: viking2917 Date: Thu, 4 Oct 2018 10:07:23 -1000 Subject: [PATCH] correct documentation for compare method, which confuses which situation returns 1 / -1. --- documentation/md/API.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documentation/md/API.md b/documentation/md/API.md index f69e91c..54921ae 100644 --- a/documentation/md/API.md +++ b/documentation/md/API.md @@ -1451,7 +1451,7 @@ Compare which of two CFIs is earlier in the text - `cfiOne` - `cfiTwo` -Returns **[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)** First is earlier = 1, Second is earlier = -1, They are equal = 0 +Returns **[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)** First is earlier = -1, Second is earlier = 1, They are equal = 0 ### fromRange