Skip to content

Commit 4be98e5

Browse files
committed
doc: update type parameter description to clarify vector representation in N dimensions
1 parent 825365f commit 4be98e5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/nd.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export type ShouldContinue<T extends Vector> = _ShouldContinue<T>;
1414
* - `midpoint` and `shouldContinue` must have the same length as the input vectors and should
1515
* be designed together to ensure convergence (e.g., integer midpoint with gap-based termination).
1616
*
17-
* @typeParam T - A readonly tuple/array type representing a vector in D dimensions.
17+
* @typeParam T - A tuple/array type representing a vector in N dimensions.
1818
* @param alwaysEnd A vector that definitely satisfies the predicate (inside/true corner).
1919
* @param neverEnd A vector that definitely does not satisfy the predicate (outside/false corner).
2020
* @param predicate Monotone decision function across the hyper-rectangle from `alwaysEnd` to `neverEnd`.

src/nd.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ const createDfsBinarySearch = <T extends Vector>(
140140
* - `midpoint` and `shouldContinue` must have the same length as the input vectors and should
141141
* be designed together to ensure convergence (e.g., integer midpoint with gap-based termination).
142142
*
143-
* @typeParam T - A readonly tuple/array type representing a vector in D dimensions.
143+
* @typeParam T - A tuple/array type representing a vector in N dimensions.
144144
* @param alwaysEnd A vector that definitely satisfies the predicate (inside/true corner).
145145
* @param neverEnd A vector that definitely does not satisfy the predicate (outside/false corner).
146146
* @param predicate Monotone decision function across the hyper-rectangle from `alwaysEnd` to `neverEnd`.

0 commit comments

Comments
 (0)