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:
commit
ec2d4bd3ee
61 changed files with 315 additions and 12 deletions
exercises/strings
|
@ -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);
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue