1
0
Fork 0
mirror of https://github.com/notohh/rustlings.git synced 2025-07-23 06:00:05 -04:00

Merge branch 'master' into refactor-hints

This commit is contained in:
marisa 2019-11-11 17:21:06 +01:00 committed by GitHub
commit ec2d4bd3ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
61 changed files with 315 additions and 12 deletions
exercises/strings

View file

@ -2,6 +2,8 @@
// Make me compile without changing the function signature!
// Execute `rustlings hint strings1` for hints ;)
// I AM NOT DONE
fn main() {
let answer = current_favorite_color();
println!("My current favorite color is {}", answer);

View file

@ -2,6 +2,8 @@
// Make me compile without changing the function signature!
// Execute `rustlings hint strings2` for hints :)
// I AM NOT DONE
fn main() {
let word = String::from("green"); // Try not changing this line :)
if is_a_color_word(word) {