Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: enchane string3 exercise hint #2050

Merged
merged 1 commit into from
Jul 17, 2024
Merged

doc: enchane string3 exercise hint #2050

merged 1 commit into from
Jul 17, 2024

Conversation

yapjiahong
Copy link
Contributor

enhance string3 exercise' hint

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

  • before
Screenshot 2024-07-17 at 12 27 32 AM
  • after
Screenshot 2024-07-17 at 12 28 12 AM
  • string3 exercise
fn trim_me(input: &str) -> &str {
    // TODO: Remove whitespace from both ends of a string.
}

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".
}

@mo8it mo8it merged commit 96f9692 into rust-lang:main Jul 17, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants