about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGunnlaugur Þór Briem <gunnlaugur@gmail.com>2022-07-14 17:06:01 +0000
committerGunnlaugur Þór Briem <gunnlaugur@gmail.com>2022-07-14 17:06:01 +0000
commit588592b78b7a5cc64679b2164f794e79c444d766 (patch)
treee57f96c9413675b4abc96e734dc7024c924278db
parent1dd207c10f90f490da9396e06228916279c3be7f (diff)
downloadrust-588592b78b7a5cc64679b2164f794e79c444d766.tar.gz
rust-588592b78b7a5cc64679b2164f794e79c444d766.zip
lint: remove unnecessary parentheses
-rw-r--r--library/core/src/iter/traits/iterator.rs2
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