Skip to content

Commit 91c977a

Browse files
committed
Update language
1 parent ffc9c6d commit 91c977a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

hooks/use-array.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ export class StatefulArray<T> extends Array<T> {
99
private readonly _dispatchSignal?: React.Dispatch<SetStateAction<number>>
1010
/** The update signal */
1111
private _signal: number
12-
/** THe dispatch function for redefining the set */
12+
/** THe dispatch function for redefining the array */
1313
private _dispatchRedefine?: React.Dispatch<SetStateAction<StatefulArray<T>>>
1414

1515
/**
16-
* Construct a StatefulSet
17-
* @param initial The initial value (parameter for a vanilla set)
16+
* Construct a StatefulArray
17+
* @param initial The initial value (parameter for a vanilla array)
1818
* @param dispatchSignal The dispatch function for the signal
1919
*/
2020
constructor (initial?: Iterable<T>, dispatchSignal?: StatefulArray<T>['_dispatchSignal']) {
@@ -160,7 +160,7 @@ export class StatefulArray<T> extends Array<T> {
160160
}
161161

162162
/**
163-
* Returns the set's signal. Used for effects and memos that use this set
163+
* Returns the array's signal. Used for effects and memos that use this array
164164
* @returns A numeric signal
165165
*/
166166
override valueOf (): number {

0 commit comments

Comments
 (0)