Skip to content

Commit 1a2e080

Browse files
committed
Polish Swift sorting to use non-mutating version
1 parent 30f5a52 commit 1a2e080

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Apple/Swift.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ someArray.joined(separator: someValue)
499499
## Sort items in arrays
500500

501501
```swift
502-
someArray.sort()
502+
someArray.sorted()
503503
```
504504

505505
## Reverse items in arrays

0 commit comments

Comments
 (0)