about summary refs log tree commit diff
diff options
context:
space:
mode:
authorYotam Ofek <yotam.ofek@gmail.com>2025-03-14 20:51:28 +0000
committerYotam Ofek <yotam.ofek@gmail.com>2025-03-14 21:03:21 +0000
commite6f7ab50c00eb754dff01fac27023a291c2ef0f4 (patch)
tree0fcb095a89cb3c372165db094c76da47b99fc9f3
parent5da1ba41b3ba8573b8b16a7207b7b29f895f3dfa (diff)
downloadrust-e6f7ab50c00eb754dff01fac27023a291c2ef0f4.tar.gz
rust-e6f7ab50c00eb754dff01fac27023a291c2ef0f4.zip
Small grammar fix in comment
-rw-r--r--compiler/rustc_hir_analysis/src/hir_ty_lowering/lint.rs2
1 files changed, 1 insertions, 1 deletions
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()),