Skip to content

Commit

Permalink
docs(data-structures): enables doc lint of data-structures (#4847)
Browse files Browse the repository at this point in the history
  • Loading branch information
kt3k committed May 27, 2024
1 parent ff8bc18 commit 826344c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
1 change: 1 addition & 0 deletions _tools/check_docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ const ENTRY_POINTS = [
"../bytes/mod.ts",
"../cli/mod.ts",
"../collections/mod.ts",
"../data_structures/mod.ts",
"../datetime/mod.ts",
"../encoding/mod.ts",
"../internal/mod.ts",
Expand Down
2 changes: 1 addition & 1 deletion data_structures/binary_heap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function getParentIndex(index: number) {
* | pop() | O(log n) | O(log n) |
* | push(value) | O(1) | O(log n) |
*
* @example
* @example Usage
* ```ts
* import {
* ascend,
Expand Down
2 changes: 1 addition & 1 deletion data_structures/binary_search_tree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ type Direction = "left" | "right";
* | min() | O(log n) | O(n) |
* | max() | O(log n) | O(n) |
*
* @example
* @example Usage
* ```ts
* import {
* BinarySearchTree,
Expand Down
4 changes: 1 addition & 3 deletions data_structures/red_black_tree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const {
* | min() | O(log n) | O(log n) |
* | max() | O(log n) | O(log n) |
*
* @example
* @example Usage
* ```ts
* import {
* ascend,
Expand Down Expand Up @@ -101,8 +101,6 @@ const {
* @typeparam T The type of the values being stored in the tree.
*/
export class RedBlackTree<T> extends BinarySearchTree<T> {
declare protected root: RedBlackNode<T> | null;

/**
* Construct an empty red-black tree.
*
Expand Down

0 comments on commit 826344c

Please sign in to comment.