From 182959ed742bddd86acd5b5f9b711d9e8980d72a Mon Sep 17 00:00:00 2001 From: Federico Maggi <7142570+fredmaggiowski@users.noreply.github.com> Date: Sun, 3 Apr 2022 12:02:53 +0200 Subject: [PATCH] fix: spacing in iter_any example --- 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 4b9dce7bfe..ad1f8ff41b 100644 --- a/src/fn/closures/closure_examples/iter_any.md +++ b/src/fn/closures/closure_examples/iter_any.md @@ -33,7 +33,7 @@ fn main() { let array2 = [4, 5, 6]; // `iter()` for arrays yields `&i32`. - println!("2 in array1: {}", array1.iter() .any(|&x| x == 2)); + println!("2 in array1: {}", array1.iter().any(|&x| x == 2)); // `into_iter()` for arrays yields `i32`. println!("2 in array2: {}", array2.iter().any(|&x| x == 2)); }