Skip to content

Commit 39c67b2

Browse files
committed
Correct comment.
1 parent 7458385 commit 39c67b2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

compiler/rustc_hir/src/hir.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -566,8 +566,7 @@ impl<'hir> Generics<'hir> {
566566
}
567567
}
568568

569-
/// If there are generic parameters, return wher to introduce a new one, and false.
570-
/// If there is none, return where to introduce `<>` and true.
569+
/// If there are generic parameters, return where to introduce a new one.
571570
pub fn span_for_param_suggestion(&self) -> Option<Span> {
572571
if self.params.iter().any(|p| self.span.contains(p.span)) {
573572
// `fn foo<A>(t: impl Trait)`

0 commit comments

Comments
 (0)