mirror of
https://github.com/apple/swift-collections
synced 2026-11-28 05:04:21 +00:00
Fix documentation for types conforming to ExpressibleByArrayLiteral or ExpressibleByDictionaryLiteral (#82)
This commit is contained in:
1 parent
0d73c74c9f
commit
69d4867984
4 files changed
+12
-15
No files matched your search
@@ -13,12 +13,12 @@ extension Deque: ExpressibleByArrayLiteral {
|
||||
/// Creates a new deque from the contents of an array literal.
|
||||
///
|
||||
/// Do not call this initializer directly. It is used by the compiler when
|
||||
/// you use an array literal. Instead, create a new set using an array
|
||||
/// you use an array literal. Instead, create a new deque using an array
|
||||
/// literal as its value by enclosing a comma-separated list of values in
|
||||
/// square brackets. You can use an array literal anywhere a set is expected
|
||||
/// square brackets. You can use an array literal anywhere a deque is expected
|
||||
/// by the type context.
|
||||
///
|
||||
/// - Parameter elements: A variadic list of elements of the new set.
|
||||
/// - Parameter elements: A variadic list of elements of the new deque.
|
||||
@inlinable
|
||||
@inline(__always)
|
||||
public init(arrayLiteral elements: Element...) {
|
||||
|
||||
Reference in new issue
Block a user