diff --git a/exercises/strings/strings1.rs b/exercises/strings/strings1.rs index 2e5088f..76e9056 100644 --- a/exercises/strings/strings1.rs +++ b/exercises/strings/strings1.rs @@ -7,7 +7,7 @@ fn main() { } fn current_favorite_color() -> String { - "blue" + String::from("blue") } diff --git a/exercises/strings/strings2.rs b/exercises/strings/strings2.rs index c77e16f..0406f7c 100644 --- a/exercises/strings/strings2.rs +++ b/exercises/strings/strings2.rs @@ -3,7 +3,7 @@ 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.");