mirror of
https://github.moeyy.xyz/https://github.com/trekhleb/javascript-algorithms.git
synced 2024-12-26 15:11:16 +08:00
fix typo error (#228)
This commit is contained in:
parent
6bd6072d45
commit
fad170cfc8
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user