From 1a295290fc39d0632e571c1bf249e93d496a44d6 Mon Sep 17 00:00:00 2001 From: mqy Date: Sun, 6 Feb 2022 16:57:57 +0800 Subject: [PATCH] fix comment on into_iter() for arrays --- src/fn/closures/closure_examples/iter_any.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fn/closures/closure_examples/iter_any.md b/src/fn/closures/closure_examples/iter_any.md index 2bbf40864c..4b9dce7bfe 100644 --- a/src/fn/closures/closure_examples/iter_any.md +++ b/src/fn/closures/closure_examples/iter_any.md @@ -34,7 +34,7 @@ fn main() { // `iter()` for arrays yields `&i32`. println!("2 in array1: {}", array1.iter() .any(|&x| x == 2)); - // `into_iter()` for arrays unusually yields `&i32`. + // `into_iter()` for arrays yields `i32`. println!("2 in array2: {}", array2.iter().any(|&x| x == 2)); } ```