From 07ec31813c70bdf045fc62804e024836809a5593 Mon Sep 17 00:00:00 2001 From: Edwin Cheng Date: Thu, 26 Mar 2020 00:11:38 +0800 Subject: fix typo of visibility_of --- crates/ra_hir_def/src/item_scope.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/ra_hir_def') diff --git a/crates/ra_hir_def/src/item_scope.rs b/crates/ra_hir_def/src/item_scope.rs index ef1aaba6f..259b9ff03 100644 --- a/crates/ra_hir_def/src/item_scope.rs +++ b/crates/ra_hir_def/src/item_scope.rs @@ -68,7 +68,7 @@ impl ItemScope { self.impls.iter().copied() } - pub fn visbility_of(&self, def: ModuleDefId) -> Option { + pub fn visibility_of(&self, def: ModuleDefId) -> Option { self.name_of(ItemInNs::Types(def)) .or_else(|| self.name_of(ItemInNs::Values(def))) .map(|(_, v)| v) -- cgit v1.2.3