diff options
| author | Gunnlaugur Þór Briem <gunnlaugur@gmail.com> | 2022-07-14 17:06:01 +0000 |
|---|---|---|
| committer | Gunnlaugur Þór Briem <gunnlaugur@gmail.com> | 2022-07-14 17:06:01 +0000 |
| commit | 588592b78b7a5cc64679b2164f794e79c444d766 (patch) | |
| tree | e57f96c9413675b4abc96e734dc7024c924278db | |
| parent | 1dd207c10f90f490da9396e06228916279c3be7f (diff) | |
| download | rust-588592b78b7a5cc64679b2164f794e79c444d766.tar.gz rust-588592b78b7a5cc64679b2164f794e79c444d766.zip | |
lint: remove unnecessary parentheses
| -rw-r--r-- | library/core/src/iter/traits/iterator.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/iter/traits/iterator.rs b/library/core/src/iter/traits/iterator.rs index 3e9521713aa..d2347598dd1 100644 --- a/library/core/src/iter/traits/iterator.rs +++ b/library/core/src/iter/traits/iterator.rs @@ -1408,7 +1408,7 @@ pub trait Iterator { /// *state = *state * x; /// /// // ... and terminate if the state exceeds 6 - /// if (*state > 6) { + /// if *state > 6 { /// return None; /// } /// // ... else yield the negation of the state |
