Skip to content

Commit 8e14a83

Browse files
committed
docs: update doc comment for fenwicktree
1 parent 7d2e093 commit 8e14a83

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/fenwicktree.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ pub fn FenwickTree(comptime T: type, comptime op: fn (T, T) T, comptime e: T) ty
4141
self.allocator.free(self.data);
4242
}
4343

44-
/// Processes `a[p] += x` (`a[p] = op(a[p], x)`).
44+
/// Processes `a[idx] += x` (`a[idx] = op(a[idx], x)`).
4545
///
4646
/// # Constraints
4747
///
48-
/// - $0 \leq p < n$
48+
/// - $0 \leq idx < n$
4949
///
5050
/// # Panics
5151
///

0 commit comments

Comments
 (0)