Skip to content

It's not obvious that trim_char only operates on the ends #18451

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

Closed
mdinger opened this issue Oct 30, 2014 · 0 comments · Fixed by #18460
Closed

It's not obvious that trim_char only operates on the ends #18451

mdinger opened this issue Oct 30, 2014 · 0 comments · Fixed by #18460

Comments

@mdinger
Copy link
Contributor

mdinger commented Oct 30, 2014

trim_chars only trims characters from the ends but that is not clear from the documentation.

// Not obvious from the description why this doesn't work
"hello world".trim_char(' ');
gamazeps added a commit to gamazeps/rust that referenced this issue Oct 30, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants