From 7c82b899f0cd7a77ab66ac7bc715d7c9f2140081 Mon Sep 17 00:00:00 2001 From: Henry Adenuga <39364502+Mctursh@users.noreply.github.com> Date: Fri, 14 Nov 2025 00:17:48 +0100 Subject: [PATCH] Update documentation for `any` function in iter_any.md Clarify the description of the `any` function parameters. --- src/fn/closures/closure_examples/iter_any.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/fn/closures/closure_examples/iter_any.md b/src/fn/closures/closure_examples/iter_any.md index 4c19caccca..63a25f96fe 100644 --- a/src/fn/closures/closure_examples/iter_any.md +++ b/src/fn/closures/closure_examples/iter_any.md @@ -13,8 +13,9 @@ pub trait Iterator { // and modified, but not consumed. fn any(&mut self, f: F) -> bool where // `FnMut` meaning any captured variable may at most be - // modified, not consumed. `Self::Item` states it takes - // arguments to the closure by value. + // modified, not consumed. `Self::Item` is the closure parameter type, + // which is determined by the iterator (e.g., `&T` for `.iter()`, + // `T` for `.into_iter()`). F: FnMut(Self::Item) -> bool; } ```