Skip to content

Commit f76ae9c

Browse files
authored
Update addition-chain-pow.jl: typo in comment
1 parent 5efe8bf commit f76ae9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/addition-chain-pow.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#
99
# To compute x^q in a minimal number of multiplications
1010
# for 1 ≤ q ≤ 255, you compute x^r * x^s for
11-
# r = power_tree[i] and s = i-q, recursively
11+
# r = power_tree[q] and s = q-r, recursively
1212
# (memoizing each power computation), and we implicitly
1313
# define power_tree[0] = 0.
1414
const power_tree = [

0 commit comments

Comments
 (0)