We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ad7a92 commit 70f5bb1Copy full SHA for 70f5bb1
clippy_lints/src/assign_ops.rs
@@ -53,8 +53,8 @@ declare_clippy_lint! {
53
///
54
/// **Known problems:** Clippy cannot know for sure if `a op= a op b` should have
55
/// been `a = a op a op b` or `a = a op b`/`a op= b`. Therefore it suggests both.
56
-/// If `a op= a op b` is really the correct behaviour then
57
-/// rewrite it as `a = (2 * a) op b` as it's less confusing.
+/// If `a op= a op b` is really the correct behaviour it should be
+/// written as `a = a op a op b` as it's less confusing.
58
59
/// **Example:**
60
/// ```rust
0 commit comments