sunface / rust-by-practice

Learning Rust By Practice, narrowing the gap between beginner and skilled-dev through challenging examples, exercises and projects.
https://practice.rs
Creative Commons Attribution 4.0 International
12.01k stars 964 forks source link

Rename first_word to first_letter #486

Closed Hugoo closed 8 months ago

Hugoo commented 8 months ago

The function name is confusing as it implies the function (should?) return "hello" (first word) - but it returns only the first letter (or char) - "h".

This rename makes it less confusing.