chore: fix typo (#2994)

<!-- Thank you for making a PR! Bug fixes are always welcome, but if
you're adding a new feature or changing an existing one, we'd really
appreciate if you open an issue, post on the forum, or drop in on
Discord -->

Fixed typo in comment.

## Checks
- [x] I am happy for maintainers to push small adjustments to this PR,
to speed up the review cycle
- [x] I have checked that there are no existing pull requests for the
same thing
This commit is contained in:
Zhizhen He
2025-11-18 11:24:40 +08:00
committed by GitHub
parent 888c0984a5
commit 74826fc2ad

View File

@@ -203,7 +203,7 @@ fn path_dist(a: &Path, b: &Path) -> usize {
let mut dist = 0;
// pop a until there's a common anscestor
// pop a until there's a common ancestor
while !b.starts_with(&a) {
dist += 1;
a.pop();