From e9a771de0a37e8cf44e2848d3a8b225b1a2f0f55 Mon Sep 17 00:00:00 2001 From: timofey Date: Mon, 7 Aug 2023 17:05:46 +0000 Subject: [PATCH] clarify `all_errors` --- src/exercises/all_errors.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/exercises/all_errors.md b/src/exercises/all_errors.md index 8252d3f..5e5a311 100644 --- a/src/exercises/all_errors.md +++ b/src/exercises/all_errors.md @@ -1,5 +1,8 @@ # Report all errors (or only the first error) +- `only_positive(..., first())` should short-circuit on first non-positive number. +- `only_positive(..., all())` must collect all non-positive numbers. + ```rust # trait Collects { # type Error;