Skip to content

Commit

Permalink
Fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Mar 23, 2024
1 parent 436f0a5 commit e52a7dd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ pub(super) fn check<'tcx>(
if let Some(local) = get_parent_local_binding_ty(cx, expr_hir_id) {
// ... which does have type annotations.
if let Some(ty) = local.ty
// If this is a `let x: _ =`, we shouldn't lint.
// If this is a `let x: _ =`, we should lint.
&& !matches!(ty.kind, TyKind::Infer)
{
return false;
Expand Down

0 comments on commit e52a7dd

Please sign in to comment.