Skip to content

std/extra: Two small bugfixes and one simplification #8858

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed

std/extra: Two small bugfixes and one simplification #8858

wants to merge 3 commits into from

Conversation

bluss
Copy link
Member

@bluss bluss commented Aug 29, 2013

Fix a bug in s.slice_chars(a, b) that did not accept a == s.len().

Fix a bug in != defined for DList.

Also simplify NormalizationIterator to use the CharIterator directly instead of mimicing the iteration itself.

blake2-ppc added 3 commits August 29, 2013 17:11
Just to simplify and not have the iteration logic repeated in multiple places.
`s.slice_chars(a, b)` did not allow the case where `a == s.len()`, this
is a bug I introduced last time I touched the method; add a test for
this case.
@bluss
Copy link
Member Author

bluss commented Aug 29, 2013

The normalization iter change and PR #8857 together clean up some of the string iteration in std::str so that no more manual iteration loops are left. The other PR is separate since its removal of functions might not go through.

@bluss
Copy link
Member Author

bluss commented Aug 30, 2013

I'm so sorry, I won't rebase in this stupid way again. The first listed commit (Eq::ne) is in fact the tip of the branch.

bors added a commit that referenced this pull request Aug 30, 2013
Fix a bug in `s.slice_chars(a, b)` that did not accept `a == s.len()`.

Fix a bug in `!=` defined for DList.

Also simplify NormalizationIterator to use the CharIterator directly instead of mimicing the iteration itself.
@bors bors closed this Aug 30, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants