Skip to content

Commit 5ee331f

Browse files
committed
fix doc comment
1 parent a7b3715 commit 5ee331f

File tree

1 file changed

+3
-3
lines changed
  • compiler/rustc_middle/src/ty

1 file changed

+3
-3
lines changed

compiler/rustc_middle/src/ty/util.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -607,9 +607,9 @@ impl<'tcx> TyCtxt<'tcx> {
607607
/// have the same `DefKind`.
608608
///
609609
/// Note that closures have a `DefId`, but the closure *expression* also has a
610-
// `HirId` that is located within the context where the closure appears (and, sadly,
611-
// a corresponding `NodeId`, since those are not yet phased out). The parent of
612-
// the closure's `DefId` will also be the context where it appears.
610+
/// `HirId` that is located within the context where the closure appears (and, sadly,
611+
/// a corresponding `NodeId`, since those are not yet phased out). The parent of
612+
/// the closure's `DefId` will also be the context where it appears.
613613
pub fn is_closure_like(self, def_id: DefId) -> bool {
614614
matches!(self.def_kind(def_id), DefKind::Closure)
615615
}

0 commit comments

Comments
 (0)