You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mystise opened this issue
Sep 11, 2017
· 1 comment
Labels
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
It appears that i should not be incremented if a value is removed from the array, as that'll cause values to be skipped and perhaps out of bounds access (say if the last element is removed, i will be incremented and one past the end of the array will be accessed)
The text was updated successfully, but these errors were encountered:
mystise
changed the title
Drain filter pseudo code incorrect
[docs] Drain filter pseudo code incorrect
Sep 11, 2017
GuillaumeGomez
added
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
A-docs
Area: Documentation for any part of the project, including the compiler, standard library, and tools
labels
Sep 12, 2017
Fix drain_filter doctest.
Fixesrust-lang#44499.
Also change some of the hidden logic in the doctest as a regression test; two bugs in the original would now cause test failure.
frewsxcv
added a commit
to frewsxcv/rust
that referenced
this issue
Sep 15, 2017
Fix drain_filter doctest.
Fixesrust-lang#44499.
Also change some of the hidden logic in the doctest as a regression test; two bugs in the original would now cause test failure.
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
https://doc.rust-lang.org/nightly/std/vec/struct.Vec.html#method.drain_filter
It appears that i should not be incremented if a value is removed from the array, as that'll cause values to be skipped and perhaps out of bounds access (say if the last element is removed, i will be incremented and one past the end of the array will be accessed)
The text was updated successfully, but these errors were encountered: