clarify all_errors
This commit is contained in:
parent
3f27099e17
commit
e9a771de0a
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user