From e6f7ab50c00eb754dff01fac27023a291c2ef0f4 Mon Sep 17 00:00:00 2001 From: Yotam Ofek Date: Fri, 14 Mar 2025 20:51:28 +0000 Subject: [PATCH] Small grammar fix in comment --- compiler/rustc_hir_analysis/src/hir_ty_lowering/lint.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/rustc_hir_analysis/src/hir_ty_lowering/lint.rs b/compiler/rustc_hir_analysis/src/hir_ty_lowering/lint.rs index 6ed29e04948..be726c042da 100644 --- a/compiler/rustc_hir_analysis/src/hir_ty_lowering/lint.rs +++ b/compiler/rustc_hir_analysis/src/hir_ty_lowering/lint.rs @@ -420,7 +420,7 @@ impl<'tcx> dyn HirTyLowerer<'tcx> + '_ { if borrowed { ("dyn ", "(dyn ") } else { ("&dyn ", "&(dyn ") }; let sugg = if let hir::TyKind::TraitObject([_, _, ..], _) = self_ty.kind { - // There are more than one trait bound, we need surrounding parentheses. + // There is more than one trait bound, we need surrounding parentheses. vec![ (self_ty.span.shrink_to_lo(), paren_dyn_str.to_string()), (self_ty.span.shrink_to_hi(), ")".to_string()),