fix doc comment
This commit is contained in:
parent
a7b3715826
commit
5ee331feb8
1 changed files with 3 additions and 3 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue