Fix typo
This commit is contained in:
parent
9f83961584
commit
f3993d0619
@ -1057,7 +1057,7 @@ pub fn nodes_matching_suffix<'a>(&'a self, parts: &'a [String])
|
||||
in_which: &parts[..parts.len() - 1],
|
||||
};
|
||||
|
||||
self.all_ids().filter(move |hir| nodes.matces_suffix(*hir)).map(move |hir| {
|
||||
self.all_ids().filter(move |hir| nodes.matches_suffix(*hir)).map(move |hir| {
|
||||
self.hir_to_node_id(hir)
|
||||
})
|
||||
}
|
||||
@ -1198,7 +1198,7 @@ fn matches_names(&self, parent_of_n: HirId, name: Name) -> bool {
|
||||
name == &**self.item_name && self.suffix_matches(parent_of_n)
|
||||
}
|
||||
|
||||
fn matces_suffix(&self, hir: HirId) -> bool {
|
||||
fn matches_suffix(&self, hir: HirId) -> bool {
|
||||
let name = match self.map.find_entry(hir).map(|entry| entry.node) {
|
||||
Some(Node::Item(n)) => n.name(),
|
||||
Some(Node::ForeignItem(n)) => n.name(),
|
||||
|
Loading…
Reference in New Issue
Block a user