Skip to content

Commit a94264c

Browse files
committed
fix typo of fenwicktree
1 parent 4b22296 commit a94264c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

document_en/fenwicktree.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ It processes `a[p] += x`.
4444
T fw.sum(int l, int r)
4545
```
4646

47-
It returns `a[l] + a[l - 1] + ... + a[r - 1]`.
47+
It returns `a[l] + a[l + 1] + ... + a[r - 1]`.
4848
If `T` is integer type(`int`, `uint`, `ll`, or `ull`), it returns the answer in $\bmod 2^{\mathrm{bit}}$, if overflowed.
4949

5050
**@{keyword.constraints}**

0 commit comments

Comments
 (0)