mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 13:25:09 +00:00
fix typo
This commit is contained in:
parent
8fc51501e0
commit
a2fdb41ace
1 changed files with 2 additions and 2 deletions
|
@ -216,8 +216,8 @@ impl AnalysisImpl {
|
||||||
.sweep(salsa::SweepStrategy::default().discard_values());
|
.sweep(salsa::SweepStrategy::default().discard_values());
|
||||||
Ok(query.search(&buf))
|
Ok(query.search(&buf))
|
||||||
}
|
}
|
||||||
/// This return `Vec`: a module may be inclucded from several places.
|
/// This return `Vec`: a module may be included from several places. We
|
||||||
/// We don't handle this case yet though, so the Vec has length at most one.
|
/// don't handle this case yet though, so the Vec has length at most one.
|
||||||
pub fn parent_module(&self, position: FilePosition) -> Cancelable<Vec<(FileId, FileSymbol)>> {
|
pub fn parent_module(&self, position: FilePosition) -> Cancelable<Vec<(FileId, FileSymbol)>> {
|
||||||
let descr = match ModuleDescriptor::guess_from_position(&*self.db, position)? {
|
let descr = match ModuleDescriptor::guess_from_position(&*self.db, position)? {
|
||||||
None => return Ok(Vec::new()),
|
None => return Ok(Vec::new()),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue