Skip to content

Commit

Permalink
doc: Update
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmah309 committed Aug 6, 2024
1 parent 2a8760c commit 7df9369
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions book/src/libs/vec/vec.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ void main() {
vec.resize(10, 0);
print(vec); // [1, 99, 6, 4, 5, 0, 0, 0, 0, 0]
RIterator<int> iterator = vec.extractIf((element) => element % 2 == 0);
Vec<int> extracted = iterator.collectVec();
Iter<int> iter = vec.extractIf((element) => element % 2 == 0);
Vec<int> extracted = iter.collectVec();
print(extracted); // [6, 4, 0, 0, 0, 0, 0]
print(vec); // [1, 99, 5]
Expand Down

0 comments on commit 7df9369

Please sign in to comment.