From 53ca4642e59ca73f6426e103cb0ca9a451c56c6e Mon Sep 17 00:00:00 2001 From: Yufan Lou <2263580+louy2@users.noreply.github.com> Date: Wed, 21 Jul 2021 17:15:52 -0400 Subject: [PATCH] Fix typo --- src/rust-2021/IntoIterator-for-arrays.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()`).