clarify all_errors

This commit is contained in:
AF 2026-04-09 12:56:15 +00:00
parent 084597c815
commit d716af8529
Signed by: alisa
SSH Key Fingerprint: SHA256:vNY4pdIZvO1FYJKHROkdHLtvyopizvZVAEwg9AF6h04

View File

@ -1,5 +1,8 @@
# Report all errors (or only the first error) # 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 ```rust
# trait Collects { # trait Collects {
# type Error; # type Error;