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

Confusing error on strip when 2nd arg is a string #51483

Closed
IanButterworth opened this issue Sep 27, 2023 · 0 comments · Fixed by #51491
Closed

Confusing error on strip when 2nd arg is a string #51483

IanButterworth opened this issue Sep 27, 2023 · 0 comments · Fixed by #51491
Labels
strings "Strings!"

Comments

@IanButterworth
Copy link
Member

julia> strip("hello.", ".")
ERROR: MethodError: objects of type String are not callable
Stacktrace:
 [1] rstrip(f::String, s::String)
   @ Base ./strings/util.jl:380
 [2] strip(f::String, s::String)
   @ Base ./strings/util.jl:413
 [3] top-level scope
   @ REPL[11]:1

julia> strip("hello.", '.')
"hello"
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.

2 participants