Skip to content

Commit

Permalink
param rename
Browse files Browse the repository at this point in the history
  • Loading branch information
Okm165 committed Jan 5, 2024
1 parent cb3054c commit da4e0bf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/common/powers_array.cairo
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// Writes the following `n` values into array:
// cur, cur * alpha, cur * alpha^2, ..., cur * alpha^(n - 1).
fn powers_array(cur: felt252, alpha: felt252, n: u32) -> Array<felt252> {
// initial, initial * alpha, initial * alpha^2, ..., initial * alpha^(n - 1).
fn powers_array(initial: felt252, alpha: felt252, n: u32) -> Array<felt252> {
let mut array = ArrayTrait::<felt252>::new();
let mut value = cur;
let mut value = initial;
let mut i: u32 = 0;
loop {
if i == n {
Expand Down

0 comments on commit da4e0bf

Please sign in to comment.