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
@@ -131,7 +131,7 @@ extension UniqueArray where Element: ~Copyable {
|
||||
_ensureFreeCapacity(items.count)
|
||||
items.withUnsafeMutableBufferPointer { buffer, count in
|
||||
let source = buffer._extracting(first: count)
|
||||
unsafe _appendUnchecked(moving: source)
|
||||
unsafe _storage._appendUnchecked(moving: source)
|
||||
count = 0
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user