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

Fix typo #261

Merged
merged 1 commit into from
Jul 22, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/rust-2021/IntoIterator-for-arrays.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
- Calls to `IntoIterator::into_iter` are *hidden* in Rust 2015 and Rust 2018 when using method call syntax
(i.e., `array.into_iter()`). So, `array.into_iter()` still resolves to `(&array).into_iter()` as it
has before.
- `array.into_iter()` changes meaning to be the call to `IntoIterator::into_inter` in Rust 2021.
- `array.into_iter()` changes meaning to be the call to `IntoIterator::into_iter` in Rust 2021.

## Details

Expand Down Expand Up @@ -95,4 +95,4 @@ fn main() {
### Optional migration

If you are using fully qualified method syntax (i.e., `IntoIterator::into_iter(array)`) in a previous edition,
this can be upgraded to method call syntax (i.e., `array.into_iter()`).
this can be upgraded to method call syntax (i.e., `array.into_iter()`).