mirror of
https://github.com/apple/swift-collections
synced 2026-11-25 04:37:48 +00:00
Update UniqueArray+Append.swift
This commit is contained in:
1 file changed
+1
-1
@@ -258,7 +258,7 @@ extension UniqueArray {
|
||||
@_alwaysEmitIntoClient
|
||||
public mutating func append(copying newElements: Span<Element>) {
|
||||
_ensureFreeCapacity(newElements.count)
|
||||
items.withUnsafeBufferPointer { source in
|
||||
newElements.withUnsafeBufferPointer { source in
|
||||
unsafe _storage._appendUnchecked(copying: source)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user