Skip to content

Commit 544d10f

Browse files
authored
Fix error in MutableCollection.shuffle() docs
1 parent 7ca4f88 commit 544d10f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/core/CollectionAlgorithms.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ extension MutableCollection where Self: RandomAccessCollection {
553553
/// Use the `shuffle()` method to randomly reorder the elements of an array.
554554
///
555555
/// var names = ["Alejandro", "Camila", "Diego", "Luciana", "Luis", "Sofía"]
556-
/// names.shuffle(using: myGenerator)
556+
/// names.shuffle()
557557
/// // names == ["Luis", "Camila", "Luciana", "Sofía", "Alejandro", "Diego"]
558558
///
559559
/// This method is equivalent to calling `shuffle(using:)`, passing in the

0 commit comments

Comments
 (0)