-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
string doc clarifications #26259
string doc clarifications #26259
Conversation
Clarify that `firstindex(str)` should always be `1` for any `AbstractString`, as mentioned by @StefanKarpinski [here](#26133 (comment)). Also reference `prevind` and `eachindex`. Also introduce the "code unit" terminology and mention the `codeunit` functions.
@StefanKarpinski, I noticed this old doc PR and updated it. Is it still merge-worthy? |
Yes, definitely an improvement! I will look into the errors and get this merged. |
The doctest error is confusing to me; is there a missing backtick somewhere or something that is screwing up the parsing? |
Not sure, I've posted the error output to Slack on the #documentation channel; hopefully someone there can help out. I've also locally rebased this on top of master for clarity. |
7 | ||
10 | ||
11 | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One extra leading space on this and the lines above.
Squashed, rebased version with an additional clarification here: #30682. I've also fixed the leading space and gotten the docs to build locally. |
Clarify that
firstindex(str)
should always be1
for anyAbstractString
, as mentioned by @StefanKarpinski here.Also reference
prevind
andeachindex
.Also introduce the "code unit" terminology and mention the
codeunit
functions.