Fix function argument in strings2.rs

This commit is contained in:
Rock070 2023-12-30 16:49:41 +08:00
parent 27d1c37b1c
commit c0768cc4da

View File

@ -5,11 +5,9 @@
// Execute `rustlings hint strings2` or use the `hint` watch subcommand for a
// hint.
// I AM NOT DONE
fn main() {
let word = String::from("green"); // Try not changing this line :)
if is_a_color_word(word) {
if is_a_color_word(&word) {
println!("That is a color word I know!");
} else {
println!("That is not a color word I know.");