Skip to content

Commit 6f7aa42

Browse files
authored
updated summary
1 parent 30f8ab0 commit 6f7aa42

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

text/0000-must-use-functions.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
Support the `#[must_use]` attribute on arbitrary functions, to make
99
the compiler lint when a call to such a function is ignored. Mark
10-
`Result::{ok, err}` `#[must_use]`.
10+
`PartialEq::{eq, ne}` `#[must_use]` as well as `PartialOrd::{lt, gt, le, ge}`.
1111

1212
# Motivation
1313

@@ -85,7 +85,7 @@ The primary motivation is to mark `PartialEq` functions as `#[must_use]`:
8585
fn eq(&self, other: &Rhs) -> bool;
8686
```
8787

88-
The same thing for `ne`, and also `lt`, `gt`, `ge`, `gt` in `PartialOrd`. There is no reason to discard the results of those operations. This means the `impl`s of these functions are not changed, it still issues a warning even for a custom `impl`.
88+
The same thing for `ne`, and also `lt`, `gt`, `ge`, `le` in `PartialOrd`. There is no reason to discard the results of those operations. This means the `impl`s of these functions are not changed, it still issues a warning even for a custom `impl`.
8989

9090
# Drawbacks
9191

0 commit comments

Comments
 (0)