[stdlib] Propagate LiteralConvertible docs

219 undocumented public APIs remain in core

Swift SVN r22213
This commit is contained in:
Dave Abrahams
2014-09-23 11:12:39 +00:00
parent f8f703083f
commit 7c9ebaa19f
14 changed files with 40 additions and 16 deletions

View File

@@ -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))
}