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

Clarify distinction between for iter and into_iter #1394

Merged
merged 2 commits into from
Dec 7, 2020

Commits on Dec 6, 2020

  1. Clarify distinction between for iter and into_iter

    The existing code examples for `for iter` and `for into_iter` don't make the distinction very clear to the user. 
    
    Although this is explained at the end, allowing the user experiment with the match types and showing how the collection gets consumed in `into_iter` but not in `iter` would help them understand better.
    shreepads authored Dec 6, 2020
    Configuration menu
    Copy the full SHA
    e81de8f View commit details
    Browse the repository at this point in the history
  2. Fix for.md to ignore compiler error for FIXME

    The user needs to fix the section by commenting out `println!("names: {:?}", names);` before running the example
    shreepads authored Dec 6, 2020
    Configuration menu
    Copy the full SHA
    4cc8565 View commit details
    Browse the repository at this point in the history