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.
1 parent 9180e6a commit cc708f8Copy full SHA for cc708f8
stdlib/public/core/Dictionary.swift
@@ -831,9 +831,8 @@ extension Dictionary: ExpressibleByDictionaryLiteral {
831
}
832
833
extension Dictionary {
834
- /// Accesses the value with the given key. If the dictionary doesn't contain
835
- /// the given key, accesses the provided default value as if the key and
836
- /// default value existed in the dictionary.
+ /// Accesses the value with the given key, falling back to the given default
+ /// value if the key isn't found.
837
///
838
/// Use this subscript when you want either the value for a particular key
839
/// or, when that key is not present in the dictionary, a default value. This
0 commit comments