Skip to content

Commit 2f0a99a

Browse files
committed
fixed known problems expression
1 parent 1f3676f commit 2f0a99a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/ranges.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ declare_clippy_lint! {
5252
/// **Known problems:** Will add unnecessary pair of parentheses when the
5353
/// expression is not wrapped in a pair but starts with a opening parenthesis
5454
/// and ends with a closing one.
55-
/// I.e: `let _ = (f()+1)..(f()+1)` results in `let _ = ((f()+1)..(f()+1))`.
55+
/// I.e: `let _ = (f()+1)..(f()+1)` results in `let _ = ((f()+1)..=f())`.
5656
///
5757
/// **Example:**
5858
/// ```rust

0 commit comments

Comments
 (0)