aboutsummaryrefslogtreecommitdiff
path: root/crates/syntax/src
diff options
context:
space:
mode:
authorVincent Esche <[email protected]>2021-01-08 14:41:32 +0000
committerVincent Esche <[email protected]>2021-01-09 14:41:29 +0000
commitc8c2bd097a8cb47b3105d32d9d22c6f2c7fbd590 (patch)
tree8f57715929bfa2af417a6e8e62cc0b48c4541890 /crates/syntax/src
parent4702c01553a8747f72026a52269426097b4cc4d5 (diff)
Fixed typos in local bindings
Diffstat (limited to 'crates/syntax/src')
-rw-r--r--crates/syntax/src/algo.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/syntax/src/algo.rs b/crates/syntax/src/algo.rs
index 22ab36cd2..384d031e7 100644
--- a/crates/syntax/src/algo.rs
+++ b/crates/syntax/src/algo.rs
@@ -88,8 +88,8 @@ pub fn least_common_ancestor(u: &SyntaxNode, v: &SyntaxNode) -> Option<SyntaxNod
88 let keep = u_depth.min(v_depth); 88 let keep = u_depth.min(v_depth);
89 89
90 let u_candidates = u.ancestors().skip(u_depth - keep); 90 let u_candidates = u.ancestors().skip(u_depth - keep);
91 let v_canidates = v.ancestors().skip(v_depth - keep); 91 let v_candidates = v.ancestors().skip(v_depth - keep);
92 let (res, _) = u_candidates.zip(v_canidates).find(|(x, y)| x == y)?; 92 let (res, _) = u_candidates.zip(v_candidates).find(|(x, y)| x == y)?;
93 Some(res) 93 Some(res)
94} 94}
95 95