diff options
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) { |