Skip to content

Commit 9f395ac

Browse files
reword documentation
Co-authored-by: Catherine Flores <catherine.3.flores@gmail.com>
1 parent 5437951 commit 9f395ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/and_then_then_some.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ fn show_sugg(cx: &LateContext<'_>, span: Span, selfarg: &Expr<'_>, closure_args:
140140
cx,
141141
AND_THEN_THEN_SOME,
142142
span,
143-
"use of `and_then` + `then_some` is equivelent to `filter`",
143+
"use of `Option::and_then` and `bool::then_some` is equivelent to `filter`",
144144
"use `Option::filter` instead",
145145
sugg,
146146
appl,

0 commit comments

Comments
 (0)