diff --git a/compiler/rustc_middle/src/ty/util.rs b/compiler/rustc_middle/src/ty/util.rs index a4422abc6883a..782ea3906ef13 100644 --- a/compiler/rustc_middle/src/ty/util.rs +++ b/compiler/rustc_middle/src/ty/util.rs @@ -607,9 +607,9 @@ impl<'tcx> TyCtxt<'tcx> { /// have the same `DefKind`. /// /// Note that closures have a `DefId`, but the closure *expression* also has a - // `HirId` that is located within the context where the closure appears (and, sadly, - // a corresponding `NodeId`, since those are not yet phased out). The parent of - // the closure's `DefId` will also be the context where it appears. + /// `HirId` that is located within the context where the closure appears (and, sadly, + /// a corresponding `NodeId`, since those are not yet phased out). The parent of + /// the closure's `DefId` will also be the context where it appears. pub fn is_closure_like(self, def_id: DefId) -> bool { matches!(self.def_kind(def_id), DefKind::Closure) }