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

04/Traits/07_Deref std::String::trim #247

Open
egreglee opened this issue Jan 16, 2025 · 0 comments
Open

04/Traits/07_Deref std::String::trim #247

egreglee opened this issue Jan 16, 2025 · 0 comments

Comments

@egreglee
Copy link

04/Traits/07_Deref says:

// TODO: whenever title and description are returned via their accessor methods, they
// should be normalized—i.e. leading and trailing whitespace should be removed.
// There is a method in Rust's standard library that can help with this, but you won't
// find it in the documentation for String.
// Can you figure out where it is defined and how to use it?

This method appears to be in String:

std::String::trim

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

No branches or pull requests

1 participant