Fix warning in benchmark

warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
This commit is contained in:
Valeriy Van
2023-01-18 21:24:52 +02:00
parent 37470915f5
commit 12719bc896

View File

@@ -52,7 +52,7 @@ public func run_PopFrontUnsafePointer(_ n: Int) {
var count = arrayCount
while count != 0 {
result += a[0]
a.assign(from: a + 1, count: count - 1)
a.update(from: a + 1, count: count - 1)
count -= 1
}
check(result == arrayCount)