mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
chore: fix some comments
Signed-off-by: cuishuang <imcusg@gmail.com>
This commit is contained in:
parent
779d9eee2e
commit
680de15ec3
4 changed files with 4 additions and 4 deletions
|
@ -281,7 +281,7 @@ impl SourceToDefCtx<'_, '_> {
|
|||
let (body, source_map) = self.db.body_with_source_map(container);
|
||||
let src = src.cloned().map(ast::Pat::from);
|
||||
let pat_id = source_map.node_pat(src.as_ref())?;
|
||||
// the pattern could resolve to a constant, verify that that is not the case
|
||||
// the pattern could resolve to a constant, verify that this is not the case
|
||||
if let crate::Pat::Bind { id, .. } = body[pat_id] {
|
||||
Some((container, id))
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue