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

19.2 Vectors Error in Code Example #1171

Closed
sebadoh opened this issue Apr 10, 2019 · 3 comments
Closed

19.2 Vectors Error in Code Example #1171

sebadoh opened this issue Apr 10, 2019 · 3 comments

Comments

@sebadoh
Copy link
Contributor

sebadoh commented Apr 10, 2019

https://doc.rust-lang.org/1.29.2/rust-by-example/std/vec.html

Code contain an error in the following places:

Line number 3: let collected_iterator: Vec = (0..10).collect();
Should be: let mut collected_iterator: Vec = (0..10).collect();
Or else Line number16 can't borrow mutably

@marioidival
Copy link
Member

@sebadoh please, create a PR fixing this :)

@sebadoh sebadoh changed the title 19.2 Vectors Erros in Code Example 19.2 Vectors Error in Code Example Apr 11, 2019
@sebadoh
Copy link
Contributor Author

sebadoh commented Apr 11, 2019

Done (Hopefully) :-)

@marioidival
Copy link
Member

closes #1178

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

No branches or pull requests

2 participants