Skip to content

Commit

Permalink
rposition() -> rev().position() (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
petrochenkov authored and Yamakaky committed Feb 24, 2017
1 parent 227eab0 commit 0982a28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libstd/sys_common/backtrace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ fn filter_frames(frames: &[Frame],
let skipped_before = frames.iter().position(|frame| {
is_good_frame(*frame, BAD_PREFIXES_TOP)
}).unwrap_or(frames.len());
let skipped_after = frames[skipped_before..].iter().rposition(|frame| {
let skipped_after = frames[skipped_before..].iter().rev().position(|frame| {
is_good_frame(*frame, BAD_PREFIXES_BOTTOM)
}).unwrap_or(frames.len() - skipped_before);

Expand Down

0 comments on commit 0982a28

Please sign in to comment.