mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Fix warning in benchmark
warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user