Skip to content

Commit 5a81f73

Browse files
no-array-sort: Fix docs typo (#2742)
1 parent 8d08510 commit 5a81f73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/rules/no-array-sort.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
Prefer using [`Array#toSorted()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/toSorted) over [`Array#sort()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort).
1111

12-
`Array#sort()` modifies the original array, while `Array#toSorted()` returns a new reversed array.
12+
`Array#sort()` modifies the original array, while `Array#toSorted()` returns a new sorted array.
1313

1414
## Examples
1515

0 commit comments

Comments
 (0)