]> git.lizzy.rs Git - rust.git/commitdiff
Tweak
authorDale Wijnand <dale.wijnand@gmail.com>
Tue, 24 Jul 2018 08:26:28 +0000 (09:26 +0100)
committerDale Wijnand <dale.wijnand@gmail.com>
Tue, 24 Jul 2018 08:26:28 +0000 (09:26 +0100)
misrefactored_assign_op's known problems wording

clippy_lints/src/assign_ops.rs

index d61515d533f03d379f00365d6da70ad2cdde6488..1ce690abcfe95d87dd2cd7a3fc1ed964097f0d2b 100644 (file)
@@ -53,8 +53,8 @@
 ///
 /// **Known problems:** Clippy cannot know for sure if `a op= a op b` should have
 /// been `a = a op a op b` or `a = a op b`/`a op= b`. Therefore it suggests both.
-/// If `a op= a op b` is really the correct behaviour then
-/// 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.
 ///
 /// **Example:**
 /// ```rust