From 1adf4f0f2dc91056d62307273fc2b2cb6d483aae Mon Sep 17 00:00:00 2001 From: davidemazzocchi Date: Fri, 27 Feb 2026 11:47:52 +0100 Subject: [PATCH] chore: update documentation of catalog.for_each method --- 01.workspace/heave/src/imp/catalog_for_each.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/01.workspace/heave/src/imp/catalog_for_each.rs b/01.workspace/heave/src/imp/catalog_for_each.rs index 032fe6d..38dc49d 100644 --- a/01.workspace/heave/src/imp/catalog_for_each.rs +++ b/01.workspace/heave/src/imp/catalog_for_each.rs @@ -17,7 +17,9 @@ impl Catalog { /// /// # Returns /// - /// A `Result` indicating success (`Ok(())`) or failure (`Err(FailedTo)`). + /// A `Result` indicating success (`Ok(())`) or failure (`Err(FailedTo::LockCatalog)`). + /// Entities that cannot be converted to type `T` are silently skipped from the iteration + /// and do not cause this function to return an error. pub fn for_each(&self, mut predicate: F) -> Result<(), FailedTo> where T: EAV,