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

string doc clarifications #26259

Closed
wants to merge 5 commits into from
Closed

string doc clarifications #26259

wants to merge 5 commits into from

Conversation

stevengj
Copy link
Member

Clarify that firstindex(str) should always be 1 for any AbstractString, as mentioned by @StefanKarpinski here.

Also reference prevind and eachindex.

Also introduce the "code unit" terminology and mention the codeunit functions.

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.
@stevengj stevengj added docs This change adds or pertains to documentation strings "Strings!" labels Feb 28, 2018
@stevengj
Copy link
Member Author

@StefanKarpinski, I noticed this old doc PR and updated it. Is it still merge-worthy?

@StefanKarpinski
Copy link
Member

Yes, definitely an improvement! I will look into the errors and get this merged.

@stevengj
Copy link
Member Author

The doctest error is confusing to me; is there a missing backtick somewhere or something that is screwing up the parsing?

@StefanKarpinski
Copy link
Member

StefanKarpinski commented Jan 10, 2019

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
```
Copy link
Member

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.

@StefanKarpinski
Copy link
Member

StefanKarpinski commented Jan 10, 2019

Squashed, rebased version with an additional clarification here: #30682. I've also fixed the leading space and gotten the docs to build locally.

@DilumAluthge DilumAluthge deleted the stevengj-patch-1 branch March 25, 2021 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs This change adds or pertains to documentation strings "Strings!"
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants