Skip to content

Commit 35aafe9

Browse files
committed
Fix Uint32Array#toSorted TSDocs
1 parent 7a792f8 commit 35aafe9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core-js-types/src/base/proposals/change-array-by-copy.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,8 +274,8 @@ interface Uint32Array { // @type-options: no-export
274274
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
275275
* value otherwise. If omitted, the elements are sorted in ascending order.
276276
* ```ts
277-
* const myNums = Uint32Array.from([11, 2, -22, 1]);
278-
* myNums.toSorted((a, b) => a - b) // Uint32Array(4) [-22, 1, 2, 11]
277+
* const myNums = Uint32Array.from([11, 2, 1]);
278+
* myNums.toSorted((a, b) => a - b) // Uint32Array(3) [1, 2, 11]
279279
* ```
280280
*/
281281
toSorted(compareFn?: (a: number, b: number) => number): Uint32Array;

0 commit comments

Comments
 (0)