File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 55// Execute `rustlings hint strings1` or use the `hint` watch subcommand for a
66// hint.
77
8- // I AM NOT DONE
8+
99
1010fn main ( ) {
1111 let answer = current_favorite_color ( ) ;
1212 println ! ( "My current favorite color is {}" , answer) ;
1313}
1414
1515fn current_favorite_color ( ) -> String {
16- "blue"
16+ String :: from ( "blue" )
1717}
Original file line number Diff line number Diff line change 55// Execute `rustlings hint strings2` or use the `hint` watch subcommand for a
66// hint.
77
8- // I AM NOT DONE
8+
99
1010fn main ( ) {
1111 let word = String :: from ( "green" ) ; // Try not changing this line :)
12- if is_a_color_word ( word) {
12+ if is_a_color_word ( & word) {
1313 println ! ( "That is a color word I know!" ) ;
1414 } else {
1515 println ! ( "That is not a color word I know." ) ;
You can’t perform that action at this time.
0 commit comments