diff --git a/src/rust-2021/IntoIterator-for-arrays.md b/src/rust-2021/IntoIterator-for-arrays.md index acdb2282..d70c02aa 100644 --- a/src/rust-2021/IntoIterator-for-arrays.md +++ b/src/rust-2021/IntoIterator-for-arrays.md @@ -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 @@ -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()`). \ No newline at end of file +this can be upgraded to method call syntax (i.e., `array.into_iter()`).