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
startswith
and endswith
look suspicous
#12917
Comments
|
...but indeed |
If we're going for maximum generality it should be |
@simonster I made that mistake some time ago too. |
We don't need the index here, just the first and last characters. |
Ahh. That's right |
I agree that |
The definitions for
startswith
andendswith
for strings look suspicious (base/string/util.jl
):start(str)
? Isn't this always1
?end
? Shouldn't this beendof(str)
instead?The text was updated successfully, but these errors were encountered: