chore: fix some comments

Signed-off-by: cuishuang <imcusg@gmail.com>
This commit is contained in:
cuishuang 2024-09-02 18:21:19 +08:00
parent 779d9eee2e
commit 680de15ec3
4 changed files with 4 additions and 4 deletions

View file

@ -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 {