mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[stdlib] Propagate LiteralConvertible docs
219 undocumented public APIs remain in core Swift SVN r22213
This commit is contained in:
@@ -289,10 +289,12 @@ public struct ${Self}<T> : MutableCollectionType, Sliceable {
|
||||
extension ${Self} : ArrayLiteralConvertible {
|
||||
%if Self == 'Array':
|
||||
// Optimized implementation for Array
|
||||
/// Create an instance containing `elements`.
|
||||
public init(arrayLiteral elements: Element...) {
|
||||
self = elements
|
||||
}
|
||||
%else:
|
||||
/// Create an instance containing `elements`.
|
||||
public init(arrayLiteral elements: Element...) {
|
||||
self.init(_extractOrCopyToNativeArrayBuffer(elements._buffer))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user