Hands-on Rust: B7.0 Typo (page 29)

➾ cargo run
❮ Hello, what’s your name?

➾ Bert
❮ Welcome to the Treehouse, Bert

Bert should be lowercase on the output (after Treehouse,) line above, as the function what_is_your_name is trimming and converting to lowercase when storing the value in the name variable before it does the iteration and comparison against the name in the array.

This can be confusing for real beginners. I suggest to either lowercase the name just for the comparison or keep it lowercase as it is and change the example output. In the latter case, you should make a note why you have decided to address people with their lower case name (for now)…