aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-11-20 14:33:27 +0000
committerAleksey Kladov <[email protected]>2018-11-20 14:33:27 +0000
commita2fdb41ace4de7737a3ba0e4ef5e68d0a41e924d (patch)
treef4f3c59a59e4a607b77321cb685bf616824dc8f7 /crates
parent8fc51501e06661e0a096ac6363ccb82d604c933a (diff)
fix typo
Diffstat (limited to 'crates')
-rw-r--r--crates/ra_analysis/src/imp.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_analysis/src/imp.rs b/crates/ra_analysis/src/imp.rs
index 61296215c..e1493bdaa 100644
--- a/crates/ra_analysis/src/imp.rs
+++ b/crates/ra_analysis/src/imp.rs
@@ -216,8 +216,8 @@ impl AnalysisImpl {
216 .sweep(salsa::SweepStrategy::default().discard_values()); 216 .sweep(salsa::SweepStrategy::default().discard_values());
217 Ok(query.search(&buf)) 217 Ok(query.search(&buf))
218 } 218 }
219 /// This return `Vec`: a module may be inclucded from several places. 219 /// This return `Vec`: a module may be included from several places. We
220 /// We don't handle this case yet though, so the Vec has length at most one. 220 /// don't handle this case yet though, so the Vec has length at most one.
221 pub fn parent_module(&self, position: FilePosition) -> Cancelable<Vec<(FileId, FileSymbol)>> { 221 pub fn parent_module(&self, position: FilePosition) -> Cancelable<Vec<(FileId, FileSymbol)>> {
222 let descr = match ModuleDescriptor::guess_from_position(&*self.db, position)? { 222 let descr = match ModuleDescriptor::guess_from_position(&*self.db, position)? {
223 None => return Ok(Vec::new()), 223 None => return Ok(Vec::new()),