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

Accept Char in String#[](str) #3855

Merged
merged 1 commit into from Jan 11, 2017

Conversation

Sija
Copy link
Contributor

@Sija Sija commented Jan 7, 2017

This PR extends String#[](str) to accept Char in type restriction.
Useful for things like email['@']?

@Sija Sija changed the title Accept Char in String#[](str) Accept Char in String#[](str) Jan 7, 2017
@bcardiff bcardiff merged commit 42c73e7 into crystal-lang:master Jan 11, 2017
@bcardiff bcardiff added this to the Next milestone Jan 11, 2017
@bcardiff
Copy link
Member

Thanks!

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

Successfully merging this pull request may close these issues.

None yet

2 participants