Skip to content
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()`).