update comment
This commit is contained in:
parent
7bd8ce2e50
commit
e3c15ae6bc
@ -542,11 +542,7 @@ impl<'hir> Map<'hir> {
|
||||
/// Retrieves the `Node` corresponding to `id`, returning `None` if cannot be found.
|
||||
pub fn find(&self, hir_id: HirId) -> Option<Node<'hir>> {
|
||||
let node = self.get_entry(hir_id).node;
|
||||
if let Node::Crate(..) = node {
|
||||
None
|
||||
} else {
|
||||
Some(node)
|
||||
}
|
||||
if let Node::Crate(..) = node { None } else { Some(node) }
|
||||
}
|
||||
|
||||
/// Similar to `get_parent`; returns the parent HIR Id, or just `hir_id` if there
|
||||
|
@ -1901,7 +1901,7 @@ pub enum ImplItemKind<'hir> {
|
||||
/// An associated constant of the given type, set to the constant result
|
||||
/// of the expression.
|
||||
Const(&'hir Ty<'hir>, BodyId),
|
||||
/// A method implementation with the given signature and body.
|
||||
/// An associated function implementation with the given signature and body.
|
||||
Fn(FnSig<'hir>, BodyId),
|
||||
/// An associated type.
|
||||
TyAlias(&'hir Ty<'hir>),
|
||||
|
Loading…
Reference in New Issue
Block a user