Update UniqueArray+Append.swift

This commit is contained in:
Alejandro Alonso committed 2026-08-12 13:32:38 -07:00
1 parent dad98a58ca
commit 6c7ebb3cb9
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)
}
}