fix typo error (#228)

This commit is contained in:
catchme 2018-10-18 11:19:46 +08:00 committed by Oleksii Trekhleb
parent 6bd6072d45
commit fad170cfc8

View File

@ -60,7 +60,7 @@ export default class FenwickTree {
*/
queryRange(leftIndex, rightIndex) {
if (leftIndex > rightIndex) {
throw new Error('Left index can not be greater then right one');
throw new Error('Left index can not be greater than right one');
}
if (leftIndex === 1) {