diff options
author | Stanislav <62983943+stanislavstrelnikov@users.noreply.github.com> | 2020-07-07 04:45:39 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-06 21:45:39 -0400 |
commit | 158ae0bfe900d2bac3076390c4fe3d2b54d94fe5 (patch) | |
tree | 209e4b5682e2a899041767c49428e34329e48084 /cli/js/rbtree.ts | |
parent | ab4c574f5202f607ceb6068f56b3cc8aed1bbbaf (diff) |
clean up code in cli/js (#6611)
Diffstat (limited to 'cli/js/rbtree.ts')
-rw-r--r-- | cli/js/rbtree.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cli/js/rbtree.ts b/cli/js/rbtree.ts index 7b01024f7..fbade97b7 100644 --- a/cli/js/rbtree.ts +++ b/cli/js/rbtree.ts @@ -1,3 +1,5 @@ +// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. + // Derived from https://github.com/vadimg/js_bintrees. MIT Licensed. import { assert } from "./util.ts"; @@ -27,7 +29,7 @@ class RBNode<T> { } export class RBTree<T> { - #comparator: (a: T, b: T) => number; + readonly #comparator: (a: T, b: T) => number; #root: RBNode<T> | null; constructor(comparator: (a: T, b: T) => number) { |