Correct comment.
This commit is contained in:
@@ -566,8 +566,7 @@ impl<'hir> Generics<'hir> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// If there are generic parameters, return wher to introduce a new one, and false.
|
/// If there are generic parameters, return where to introduce a new one.
|
||||||
/// If there is none, return where to introduce `<>` and true.
|
|
||||||
pub fn span_for_param_suggestion(&self) -> Option<Span> {
|
pub fn span_for_param_suggestion(&self) -> Option<Span> {
|
||||||
if self.params.iter().any(|p| self.span.contains(p.span)) {
|
if self.params.iter().any(|p| self.span.contains(p.span)) {
|
||||||
// `fn foo<A>(t: impl Trait)`
|
// `fn foo<A>(t: impl Trait)`
|
||||||
|
|||||||
Reference in New Issue
Block a user