diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2022-04-29 18:54:04 +0200 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2022-04-30 13:55:17 +0200 |
| commit | 39c67b2133702974efe03fea651e9b4a5cb2cbe1 (patch) | |
| tree | 0c39515246fcabbf3c9f52232e85ea5eabe57a18 | |
| parent | 74583852e8940f20d7c40c0dcc4d55697dee871b (diff) | |
| download | rust-39c67b2133702974efe03fea651e9b4a5cb2cbe1.tar.gz rust-39c67b2133702974efe03fea651e9b4a5cb2cbe1.zip | |
Correct comment.
| -rw-r--r-- | compiler/rustc_hir/src/hir.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_hir/src/hir.rs b/compiler/rustc_hir/src/hir.rs index eef9947f867..dfeee3f356f 100644 --- a/compiler/rustc_hir/src/hir.rs +++ b/compiler/rustc_hir/src/hir.rs @@ -566,8 +566,7 @@ impl<'hir> Generics<'hir> { } } - /// If there are generic parameters, return wher to introduce a new one, and false. - /// If there is none, return where to introduce `<>` and true. + /// If there are generic parameters, return where to introduce a new one. pub fn span_for_param_suggestion(&self) -> Option<Span> { if self.params.iter().any(|p| self.span.contains(p.span)) { // `fn foo<A>(t: impl Trait)` |
