We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent edc7109 commit 568364cCopy full SHA for 568364c
benchmark/single-source/DiffingMyers.swift
@@ -187,9 +187,9 @@ fileprivate func myers<C,D>(
187
* necessary) is significantly less than the worst-case n² memory use of the
188
* descent algorithm.
189
*/
190
- func _withContiguousStorage<C : Collection, R>(
191
- for values: C,
192
- _ body: (UnsafeBufferPointer<C.Element>) throws -> R
+ func _withContiguousStorage<Col : Collection, R>(
+ for values: Col,
+ _ body: (UnsafeBufferPointer<Col.Element>) throws -> R
193
) rethrows -> R {
194
if let result = try values.withContiguousStorageIfAvailable(body) { return result }
195
let array = ContiguousArray(values)
0 commit comments