update comment

This commit is contained in:
Mark Mansi 2020-03-06 18:00:46 -06:00
parent 7bd8ce2e50
commit e3c15ae6bc
2 changed files with 2 additions and 6 deletions

View File

@ -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

View File

@ -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>),