Skip to content

Commit 9d08f16

Browse files
committed
Fixes example snippet in Array.swift adding missing parameter label
1 parent 5a1f38b commit 9d08f16

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/public/core/Array.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -852,14 +852,14 @@ extension Array: RangeReplaceableCollection {
852852
/// `LazyMapCollection<Dictionary<String, Int>, Int>` to a simple
853853
/// `[String]`.
854854
///
855-
/// func cacheImagesWithNames(names: [String]) {
855+
/// func cacheImages(withNames names: [String]) {
856856
/// // custom image loading and caching
857857
/// }
858858
///
859859
/// let namedHues: [String: Int] = ["Vermillion": 18, "Magenta": 302,
860860
/// "Gold": 50, "Cerise": 320]
861861
/// let colorNames = Array(namedHues.keys)
862-
/// cacheImagesWithNames(colorNames)
862+
/// cacheImages(withNames: colorNames)
863863
///
864864
/// print(colorNames)
865865
/// // Prints "["Gold", "Cerise", "Magenta", "Vermillion"]"

0 commit comments

Comments
 (0)