Skip to content

fix: correct iter/into_iter type comments in iter_find example#2006

Merged
marioidival merged 1 commit intorust-lang:masterfrom
Abhinav-ranish:fix/1982-iter-find-comments
Apr 1, 2026
Merged

fix: correct iter/into_iter type comments in iter_find example#2006
marioidival merged 1 commit intorust-lang:masterfrom
Abhinav-ranish:fix/1982-iter-find-comments

Conversation

@Abhinav-ranish
Copy link
Copy Markdown
Contributor

Fixes #1982

The array comments incorrectly described what iter() and into_iter() yield. Updated to accurately explain that iter() yields &i32 for both vecs and arrays, and that find() wraps the item in an additional &, matching the vec examples.

@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Apr 1, 2026

r? @marioidival

rustbot has assigned @marioidival.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: @marioidival

@marioidival marioidival merged commit 6f99c15 into rust-lang:master Apr 1, 2026
1 check passed
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

Successfully merging this pull request may close these issues.

Incorrect comment

3 participants