Skip to content

Commit bbe1811

Browse files
committed
Use the correct argument label.
Fixes <rdar://problem/64222181>.
1 parent 9ef0b11 commit bbe1811

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/core/Dictionary.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -862,7 +862,7 @@ extension Dictionary {
862862
/// let message = "Hello, Elle!"
863863
/// var letterCounts: [Character: Int] = [:]
864864
/// for letter in message {
865-
/// letterCounts[letter, defaultValue: 0] += 1
865+
/// letterCounts[letter, default: 0] += 1
866866
/// }
867867
/// // letterCounts == ["H": 1, "e": 2, "l": 4, "o": 1, ...]
868868
///

0 commit comments

Comments
 (0)