Skip to content

Commit

Permalink
Fix ToAsciiArrayTrait::to_ascii_array return reversed array
Browse files Browse the repository at this point in the history
  • Loading branch information
kfastov committed Oct 13, 2023
1 parent 3356bf0 commit 3c9d316
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ascii/src/interger.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ impl ToAsciiArrayTraitImpl<
> of ToAsciiArrayTrait<T> {
fn to_ascii_array(self: T) -> Array<felt252> {
let mut new_arr = self.to_inverse_ascii_array();
new_arr.reverse();
new_arr
new_arr.reverse()
}

fn to_inverse_ascii_array(self: T) -> Array<felt252> {
Expand Down

0 comments on commit 3c9d316

Please sign in to comment.