Skip to content

Commit 9180e6a

Browse files
committed
Use the correct argument label in prose.
See also these commits, which fixed the same issue in the code listing: 589dd73 bbe1811
1 parent 3490346 commit 9180e6a

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
@@ -866,7 +866,7 @@ extension Dictionary {
866866
/// }
867867
/// // letterCounts == ["H": 1, "e": 2, "l": 4, "o": 1, ...]
868868
///
869-
/// When `letterCounts[letter, defaultValue: 0] += 1` is executed with a
869+
/// When `letterCounts[letter, default: 0] += 1` is executed with a
870870
/// value of `letter` that isn't already a key in `letterCounts`, the
871871
/// specified default value (`0`) is returned from the subscript,
872872
/// incremented, and then added to the dictionary under that key.

0 commit comments

Comments
 (0)