Skip to content

Commit

Permalink
fix typo error (trekhleb#228)
Browse files Browse the repository at this point in the history
  • Loading branch information
catchme authored and trekhleb committed Oct 18, 2018
1 parent 6bd6072 commit fad170c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/data-structures/tree/fenwick-tree/FenwickTree.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit fad170c

Please sign in to comment.