diff --git a/src/mol-data/int/sorted-array.ts b/src/mol-data/int/sorted-array.ts index 3e343fd5e7998fc278c6fa3d609de89c8d04af63..921700b6790baa00794ea6e1d7966d084b15d5f1 100644 --- a/src/mol-data/int/sorted-array.ts +++ b/src/mol-data/int/sorted-array.ts @@ -14,7 +14,7 @@ namespace SortedArray { export const ofSortedArray: <T extends number = number>(xs: ArrayLike<number>) => SortedArray<T> = Impl.ofSortedArray as any; // create sorted array [min, max] (it DOES contain the max value) export const ofRange: <T extends number = number>(min: T, max: T) => SortedArray<T> = Impl.ofRange as any; - // create sorted array [min, max) (it DOES not contain the max value) + // create sorted array [min, max) (it does NOT contain the max value) export const ofBounds: <T extends number = number>(min: T, max: T) => SortedArray<T> = (min, max) => Impl.ofRange(min, max - 1) as any; export const is: <T extends number = number>(v: any) => v is SortedArray<T> = Impl.is as any;