rust-lang / rustlings

:crab: Small exercises to get you used to reading and writing Rust code!
https://rustlings.cool
MIT License
52.69k stars 10.02k forks source link

doc: enchane string3 exercise hint #2050

Closed yapjiahong closed 1 month ago

yapjiahong commented 1 month ago

enhance string3 exercise' hint

Add a replace_method hint; I think it would be more helpful for beginners.

fn compose_me(input: &str) -> String { // TODO: Add " world!" to the string! There are multiple ways to do this. }

fn replace_me(input: &str) -> String { // TODO: Replace "cars" in the string with "balloons". }