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

[docs] trim_start_matches and trim_end_matches have copy+pasted docs #57686

Closed
vitiral opened this issue Jan 17, 2019 · 1 comment · Fixed by #58005
Closed

[docs] trim_start_matches and trim_end_matches have copy+pasted docs #57686

vitiral opened this issue Jan 17, 2019 · 1 comment · Fixed by #58005
Labels
A-docs Area: documentation for any part of the project, including the compiler, standard library, and tools C-bug Category: This is a bug.

Comments

@vitiral
Copy link
Contributor

vitiral commented Jan 17, 2019

trim_start_matches states:

Text directionality

A string is a sequence of bytes. 'Left' in this context means the first position of that byte string; for a language like Arabic or Hebrew which are 'right to left' rather than 'left to right', this will be the right side, not the left.

But "left" is never mentioned XD

Same is true for trim_end_matches.

(Note: copy/pasted from trim_left_matches and trim_right_matches)

@hellow554
Copy link
Contributor

Would you mind to open a PR and fix it? ;)

@Centril Centril added A-docs Area: documentation for any part of the project, including the compiler, standard library, and tools C-bug Category: This is a bug. labels Jan 17, 2019
vitiral pushed a commit to vitiral/rust that referenced this issue Jan 30, 2019
Centril added a commit to Centril/rust that referenced this issue Jan 31, 2019
…Manishearth

update docs for fix_start/end_matches

fixes rust-lang#57686:
Mark-Simulacrum added a commit to Mark-Simulacrum/rust that referenced this issue Jul 3, 2019
Fixed document bug, those replaced each other

Originally reported by rust-lang#57686, introduced by rust-lang#58005
Mark-Simulacrum added a commit to Mark-Simulacrum/rust that referenced this issue Jul 3, 2019
Fixed document bug, those replaced each other

Originally reported by rust-lang#57686, introduced by rust-lang#58005
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-docs Area: documentation for any part of the project, including the compiler, standard library, and tools C-bug Category: This is a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants