Rust's Built-in Functions
Learn how to trim input and convert input into the upper and lower case using Rust's built-in functions.
We'll cover the following
The program’s output looks good on screen, but it contains a subtle bug. The string contains some extra characters representing the “ENTER” key. We can see this by replacing our last println!
call with the following:
Get hands-on with 1400+ tech skills courses.