We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 646fcf6 + 9d08f16 commit 502258eCopy full SHA for 502258e
stdlib/public/core/Array.swift
@@ -852,14 +852,14 @@ extension Array: RangeReplaceableCollection {
852
/// `LazyMapCollection<Dictionary<String, Int>, Int>` to a simple
853
/// `[String]`.
854
///
855
- /// func cacheImagesWithNames(names: [String]) {
+ /// func cacheImages(withNames names: [String]) {
856
/// // custom image loading and caching
857
/// }
858
859
/// let namedHues: [String: Int] = ["Vermillion": 18, "Magenta": 302,
860
/// "Gold": 50, "Cerise": 320]
861
/// let colorNames = Array(namedHues.keys)
862
- /// cacheImagesWithNames(colorNames)
+ /// cacheImages(withNames: colorNames)
863
864
/// print(colorNames)
865
/// // Prints "["Gold", "Cerise", "Magenta", "Vermillion"]"
0 commit comments