Skip to content

Commit 4d9204e

Browse files
authored
don't not avoid double negative
1 parent 1f00ab8 commit 4d9204e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/code-considerations/design/must-use.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ a.saturating_add(b);
2323
Combinators produced by the `Iterator` trait are `#[must_use]` because failing to consider them might indicate a caller didn't realize `Iterator`s are lazy and won't actually do anything unless you drive them:
2424

2525
```rust
26-
// A caller might not realise none of this code won't do anything
26+
// A caller might not realise this code won't do anything
2727
// unless they call `collect`, `count`, etc.
2828
slice.iter().filter(|v| v > 10).map(|v| v + 2);
2929
```

0 commit comments

Comments
 (0)