Small grammar fix in comment
This commit is contained in:
parent
5da1ba41b3
commit
e6f7ab50c0
1 changed files with 1 additions and 1 deletions
|
@ -420,7 +420,7 @@ impl<'tcx> dyn HirTyLowerer<'tcx> + '_ {
|
||||||
if borrowed { ("dyn ", "(dyn ") } else { ("&dyn ", "&(dyn ") };
|
if borrowed { ("dyn ", "(dyn ") } else { ("&dyn ", "&(dyn ") };
|
||||||
|
|
||||||
let sugg = if let hir::TyKind::TraitObject([_, _, ..], _) = self_ty.kind {
|
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![
|
vec![
|
||||||
(self_ty.span.shrink_to_lo(), paren_dyn_str.to_string()),
|
(self_ty.span.shrink_to_lo(), paren_dyn_str.to_string()),
|
||||||
(self_ty.span.shrink_to_hi(), ")".to_string()),
|
(self_ty.span.shrink_to_hi(), ")".to_string()),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue