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

Ensures String.slice always returns a string. #2412

Merged
merged 1 commit into from Jun 16, 2014

Conversation

christhekeele
Copy link
Contributor

Both String.slice/3 and String.slice/2 now will return empty strings for
impossible or out of bound ranges, rather than nil.

Spinoff of issue #2410.

Both String.slice/3 and String.slice/2 now will return empty strings for
impossible or out of bound ranges.
josevalim pushed a commit that referenced this pull request Jun 16, 2014
Ensures String.slice always returns a string
@josevalim josevalim merged commit 24c4bc3 into elixir-lang:master Jun 16, 2014
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.

None yet

2 participants