mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[stdlib] update for 'inout' adjustment (SE-0031)
This commit is contained in:
@@ -497,7 +497,7 @@ public struct _ContiguousArrayBuffer<Element> : _ArrayBufferType {
|
||||
/// Append the elements of `rhs` to `lhs`.
|
||||
public func += <
|
||||
Element, C : CollectionType where C.Generator.Element == Element
|
||||
> (inout lhs: _ContiguousArrayBuffer<Element>, rhs: C) {
|
||||
> (lhs: inout _ContiguousArrayBuffer<Element>, rhs: C) {
|
||||
let oldCount = lhs.count
|
||||
let newCount = oldCount + numericCast(rhs.count)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user