You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// 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?
04/Traits/07_Deref says:
// TODO: whenever
title
anddescription
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
The text was updated successfully, but these errors were encountered: