about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMaybe Waffle <waffle.lapkin@gmail.com>2023-01-30 05:55:20 +0000
committerMaybe Waffle <waffle.lapkin@gmail.com>2023-01-30 05:55:20 +0000
commit883145f75d105abc32911f536738f66d74d32f4f (patch)
tree1ff62c45325fc48c5d9b478f1d8b4f226a3655a6
parentb2ef837b6c52d1cb0977c7fc1e62af5ee546827e (diff)
downloadrust-883145f75d105abc32911f536738f66d74d32f4f.tar.gz
rust-883145f75d105abc32911f536738f66d74d32f4f.zip
fix `TraitItemKind::expect_type` docs
-rw-r--r--compiler/rustc_hir/src/hir.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_hir/src/hir.rs b/compiler/rustc_hir/src/hir.rs
index ef4a8754ac2..95422f74120 100644
--- a/compiler/rustc_hir/src/hir.rs
+++ b/compiler/rustc_hir/src/hir.rs
@@ -2288,7 +2288,7 @@ impl<'hir> TraitItem<'hir> {
         (ty, trfn)
     }
 
-    /// Expect an [`TraitItemKind::ExternCrate`] or panic.
+    /// Expect an [`TraitItemKind::Type`] or panic.
     #[track_caller]
     pub fn expect_type(&self) -> (GenericBounds<'hir>, Option<&'hir Ty<'hir>>) {
         let TraitItemKind::Type(bounds, ty) = self.kind else { self.expect_failed("a type") };