chore: minor typo cleanup (#6324)

* chore: minor typo cleanup

* fix tests

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
This commit is contained in:
Nick Schonning 2022-01-13 01:36:53 -05:00 committed by GitHub
parent 217b62682d
commit 02a233a221
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 26 additions and 26 deletions

View file

@ -46,7 +46,7 @@ export default function search(node: Node): TOCItem[] {
});
});
// Keep track of which previous index would be the current heading's direcy parent.
// Keep track of which previous index would be the current heading's direct parent.
// Each entry <i> is the last index of the `headings` array at heading level <i>.
// We will modify these indices as we iterate through all headings.
// e.g. if an ### H3 was last seen at index 2, then prevIndexForLevel[3] === 2