mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Renamed DictionaryLiteral to KeyValuePairs (#16577)
* renamed DictionaryLiteral to KeyValuePairs per SE-0214 * renamed DictionaryLiteral type tests to KeyValuePairs * [SE-0214] Move changelog entry (Swift 4.2 => 5.0) * [SE-0214] Update comment in AST/Expr.h * [SE-0214] Use generic typealias See also <https://github.com/apple/swift/pull/17711> * [SE-0214] Update source-stability.swift.expected
This commit is contained in:
@@ -660,10 +660,10 @@ public protocol ExpressibleByArrayLiteral {
|
||||
/// print(frequencies.count)
|
||||
/// // Prints "0"
|
||||
///
|
||||
/// - Note: A dictionary literal is *not* the same as an instance of
|
||||
/// `Dictionary` or the similarly named `DictionaryLiteral` type. You can't
|
||||
/// initialize a type that conforms to `ExpressibleByDictionaryLiteral` simply
|
||||
/// by assigning an instance of one of these types.
|
||||
/// - Note:
|
||||
/// A dictionary literal is *not* the same as an instance of `Dictionary`.
|
||||
/// You can't initialize a type that conforms to `ExpressibleByDictionaryLiteral`
|
||||
/// simply by assigning an instance of `Dictionary`, `KeyValuePairs`, or similar.
|
||||
///
|
||||
/// Conforming to the ExpressibleByDictionaryLiteral Protocol
|
||||
/// =========================================================
|
||||
|
||||
Reference in New Issue
Block a user