Skip to content

Add info that Regex.scan/3 is only matching non-overlapping matches and corresponding doctests #13153

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

Merged
merged 2 commits into from
Dec 3, 2023

Conversation

Lakret
Copy link
Contributor

@Lakret Lakret commented Dec 3, 2023

During the first day of this year's Advent of Code I discovered that Regex.scan docs can be improved: they claim that the function is matching all matches, but in truth it only matches non-overlapping matches. Corrected the docs and added corresponding doctests.

Not sure about the positioning for the doctests, thought it makes more sense to add them after the "non-matching" case, but looking forward to feedback :)

@Lakret Lakret changed the title Added info that Regex.scan/3 is only matching non-overlapping matches and corresponding doctests Add info that Regex.scan/3 is only matching non-overlapping matches and corresponding doctests Dec 3, 2023
@josevalim josevalim merged commit e952256 into elixir-lang:main Dec 3, 2023
@josevalim
Copy link
Member

💚 💙 💜 💛 ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants