Skip to content

clarified the comment in exercise #2231

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

Closed
wants to merge 1 commit into from

Conversation

akshatcoder-hash
Copy link

@akshatcoder-hash akshatcoder-hash commented Apr 6, 2025

This Pull request fixes #2230
Replaced this with the actual name of the function is_a_color_word which was causing confusion for the users

@akshatcoder-hash
Copy link
Author

requesting review on this @mo8it

@rnazali
Copy link
Contributor

rnazali commented Apr 30, 2025

Hi, maybe what the issue suggests is more like this:

// TODO: Fix the compiler error in the `main` function without changing `is_a_color_word` function.
fn is_a_color_word(attempt: &str) -> bool {
    attempt == "green" || attempt == "blue" || attempt == "red"
}

@mo8it
Copy link
Contributor

mo8it commented May 13, 2025

AI reported…

@mo8it mo8it closed this May 13, 2025
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.

Enhancement (09_strings/strings2.rs): confusing comment
3 participants