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

contains does not allow Char needle #22418

Closed
musm opened this issue Jun 18, 2017 · 1 comment · Fixed by #22435
Closed

contains does not allow Char needle #22418

musm opened this issue Jun 18, 2017 · 1 comment · Fixed by #22435
Labels
strings "Strings!"

Comments

@musm
Copy link
Contributor

musm commented Jun 18, 2017

  contains(haystack::AbstractString, needle::AbstractString)

  Determine whether the second argument is a substring of the first.

  julia> contains("JuliaLang is pretty cool!", "Julia")
  true

Is there any limitation to relaxing the needle and allowing Char types in addition to AbstractString?

@StefanKarpinski
Copy link
Member

Sure, why not.

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

Successfully merging a pull request may close this issue.

3 participants