aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_hir/src')
-rw-r--r--crates/ra_hir/src/module.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_hir/src/module.rs b/crates/ra_hir/src/module.rs
index 26171d27c..a53b69d20 100644
--- a/crates/ra_hir/src/module.rs
+++ b/crates/ra_hir/src/module.rs
@@ -80,7 +80,7 @@ impl Module {
80 Some(Crate::new(crate_id)) 80 Some(Crate::new(crate_id))
81 } 81 }
82 82
83 /// Returns the all modulkes on the way to the root. 83 /// Returns the all modules on the way to the root.
84 pub fn path_to_root(&self) -> Vec<Module> { 84 pub fn path_to_root(&self) -> Vec<Module> {
85 generate(Some(self.clone()), move |it| it.parent()).collect::<Vec<Module>>() 85 generate(Some(self.clone()), move |it| it.parent()).collect::<Vec<Module>>()
86 } 86 }