From b7af1c679487953b3f014f2107183091f29e7985 Mon Sep 17 00:00:00 2001 From: syyymonn Date: Tue, 28 Apr 2026 14:51:40 +0200 Subject: [PATCH 1/2] added context --- src/error/iter_result.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/error/iter_result.md b/src/error/iter_result.md index 288f4fc022..230111dd3e 100644 --- a/src/error/iter_result.md +++ b/src/error/iter_result.md @@ -30,7 +30,7 @@ fn main() { } ``` -## Collect the failed items with `map_err()` and `filter_map()` +## Collect the failed items with `map_err()` and `filter_map()`, as below: `map_err` calls a function with the error, so by adding that to the previous `filter_map` solution we can save them off to the side while iterating. From 8037f2fe3bcfa021f34aa2546ac65d43e638c8c7 Mon Sep 17 00:00:00 2001 From: syyymonn Date: Tue, 28 Apr 2026 16:07:58 +0200 Subject: [PATCH 2/2] added context to description --- src/error/iter_result.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/error/iter_result.md b/src/error/iter_result.md index 230111dd3e..30a89febba 100644 --- a/src/error/iter_result.md +++ b/src/error/iter_result.md @@ -30,7 +30,7 @@ fn main() { } ``` -## Collect the failed items with `map_err()` and `filter_map()`, as below: +## Collect the failed items with `map_err()` and `filter_map()`, as shown below: `map_err` calls a function with the error, so by adding that to the previous `filter_map` solution we can save them off to the side while iterating.