Skip to content

Chapter 3.5. - iter() method not explained.  #2672

Closed

Description

@faraaz-baig

I am learning rust and I find every single line of code is explained properly. Great job! unfortunately was going through chapter 3.5 "Looping Through a Collection with for" section. The iter() method is not explained.

This is just to maintain consistency in quality of the rust docs :)

Activity

  1. tal-zvon commented on Apr 3, 2021

    @tal-zvon

    There is an entire chapter that deals with iterators that follows (Chapter 13).

    Chapter 3.5 just has a short example of how to iterate through the array. The chapter's focus is not iterators.
    I think it should either be left as-is, or a short note can be added that says something like "we'll take a closer look at iterators in Chapter 13".

  2. faraaz-baig commented on Apr 3, 2021

    @faraaz-baig
    Author

    A Short note will do a great job!

  3. carols10cents commented on Jul 14, 2021

    @carols10cents
    Member

    Soon the iter method won't be needed in this example! https://blog.rust-lang.org/2021/05/11/edition-2021.html#intoiterator-for-arrays I'm leaving this issue open as we're going to fix this by removing iter when the new functionality is stable.

  4. added this to the ch3 milestone on Jul 14, 2021
  5. steveklabnik commented on Jul 15, 2021

    @steveklabnik
    Contributor

    (Yes, and this is part of the reason it wasn't explained; I didn't want to do a bunch here when it would eventually be unneeded, and most people seemed to intuitively get what was going on.)

  6. added a commit that references this issue on Jul 22, 2021
    bfa4e31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Enhancementblocked upstreamBlocked on a change that needs to happen in a different repo first

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions