Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mutable borrows: challange #14

Open
dankor opened this issue Nov 30, 2016 · 1 comment
Open

Mutable borrows: challange #14

dankor opened this issue Nov 30, 2016 · 1 comment

Comments

@dankor
Copy link

dankor commented Nov 30, 2016

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

@oylenshpeegul
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants