Skip to content
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

std.array.replaceFirst() bug and doc fixes #168

Merged
merged 3 commits into from
Aug 3, 2011

Conversation

dnadlinger
Copy link
Member

This fixes a bug in replaceFirst which was recently mentioned on the NG, and went undetected because the unittest block didn't actually test the right function.

Additionally, it clarifies the documentation for replace and replaceFirst with regard to array copying.

…ing changed.

This behavior is reasonable and explicitly tested for in the unit tests, but previously, one could think that they always returned a copy from the docs.
The unittest block seemed to be a direct copy of the replace() one, now it actually tests replaceFirst().
@dnadlinger
Copy link
Member Author

Oh, this was reported to Bugzilla in the meantime as well: http://d.puremagic.com/issues/show_bug.cgi?id=6428

andralex added a commit that referenced this pull request Aug 3, 2011
std.array.replaceFirst() bug and doc fixes
@andralex andralex merged commit ed5b287 into dlang:master Aug 3, 2011
kuettler pushed a commit to kuettler/phobos that referenced this pull request Feb 6, 2018
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