about summary refs log tree commit diff
path: root/clippy_lints/src
diff options
context:
space:
mode:
authortodaymoon <csgcgl@foxmail.com>2025-03-26 15:36:08 +0800
committertodaymoon <csgcgl@foxmail.com>2025-03-26 17:40:11 +0800
commita8bfafe92962e6dcd1776ac2d2eb2e85072001df (patch)
tree6a59237d5693232c47910a65c8c36df850d363a9 /clippy_lints/src
parent939d5f93eb62f3237f4b35fbaba1226b3340b3e6 (diff)
chore: fix some comments
Signed-off-by: todaymoon <csgcgl@foxmail.com>
Diffstat (limited to 'clippy_lints/src')
-rw-r--r--clippy_lints/src/operators/identity_op.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/operators/identity_op.rs b/clippy_lints/src/operators/identity_op.rs
index 03582322827..e1fd09549a4 100644
--- a/clippy_lints/src/operators/identity_op.rs
+++ b/clippy_lints/src/operators/identity_op.rs
@@ -103,7 +103,7 @@ enum Parens {
 ///
 /// e.g. `-(x + y + 0)` cannot be reduced to `-x + y`, as the behavior changes silently.
 /// e.g. `1u64 + ((x + y + 0i32) as u64)` cannot be reduced to `1u64 + x + y as u64`, since
-/// the the cast expression will not apply to the same expression.
+/// the cast expression will not apply to the same expression.
 /// e.g. `0 + if b { 1 } else { 2 } + if b { 3 } else { 4 }` cannot be reduced
 /// to `if b { 1 } else { 2 } + if b { 3 } else { 4 }` where the `if` could be
 /// interpreted as a statement. The same behavior happens for `match`, `loop`,