Skip to content

Commit

Permalink
Added comment
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasArvidsson committed Dec 26, 2024
1 parent f035b77 commit 1d7b1f0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { RangeTreeNode } from "./RangeTreeNode";

/**
* Creates a tree of ranges from a list of ranges. This improves containing lookup time.
* @param items The ranges to create a tree from.
* @param items The ranges to create a tree from. They must be sorted in document order.
* @returns The root nodes of the tree.
*/
export function createRangeTree<T extends { range: Range }>(
Expand Down

0 comments on commit 1d7b1f0

Please sign in to comment.