Skip to content

Commit 70f5bb1

Browse files
committed
Tweak
misrefactored_assign_op's known problems wording
1 parent 6ad7a92 commit 70f5bb1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/assign_ops.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ declare_clippy_lint! {
5353
///
5454
/// **Known problems:** Clippy cannot know for sure if `a op= a op b` should have
5555
/// 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.
56+
/// If `a op= a op b` is really the correct behaviour it should be
57+
/// written as `a = a op a op b` as it's less confusing.
5858
///
5959
/// **Example:**
6060
/// ```rust

0 commit comments

Comments
 (0)