Open dankor opened 7 years ago
My code doesn't compile after following the video tutorial, am I missing something or is it's a compiler changes?
The code: https://is.gd/l9IAeS
We have to remove the assignment since we're no longer returning anything. That is, if we change
str1 = join_words(&mut str1, &str2);
to
join_words(&mut str1, &str2);
then it should work.
My code doesn't compile after following the video tutorial, am I missing something or is it's a compiler changes?
The code: https://is.gd/l9IAeS