Skip to content

Commit

Permalink
Syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
delaaxe committed Jun 10, 2024
1 parent 2de105b commit a8671d5
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/air/public_memory.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,9 @@ impl PageImpl of PageTrait {
fn extract_range_unchecked(self: @Page, addr: u32, len: usize) -> Span<felt252> {
let mut arr = ArrayTrait::new();
let mut slice = self.span().slice(addr, len);
while !slice
.is_empty() {
let current = *slice.pop_front().unwrap();
arr.append(current.value);
};
while let Option::Some(current) = slice.pop_front() {
arr.append(*current.value);
};
arr.span()
}

Expand Down

0 comments on commit a8671d5

Please sign in to comment.