Skip to content

Commit 67f0ba4

Browse files
kiscadblyxyas
andauthored
Update clippy_lints/src/matches/redundant_guards.rs
fix typo Co-authored-by: Alejandra González <[email protected]>
1 parent 8d3bbb0 commit 67f0ba4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/matches/redundant_guards.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ fn get_pat_binding<'tcx>(
123123
if matches!(bind_annot.0, rustc_ast::ByRef::Yes) {
124124
let _ = byref_ident.insert(ident);
125125
}
126-
// the second call of `replce()` returns a `Some(span)`, meaning a multi-binding pattern
126+
// the second call of `replace()` returns a `Some(span)`, meaning a multi-binding pattern
127127
if span.replace(pat.span).is_some() {
128128
multiple_bindings = true;
129129
return false;

0 commit comments

Comments
 (0)