Skip to content

Commit 568364c

Browse files
committed
Fix warning
warning: generic parameter 'C' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
1 parent edc7109 commit 568364c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

benchmark/single-source/DiffingMyers.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,9 @@ fileprivate func myers<C,D>(
187187
* necessary) is significantly less than the worst-case n² memory use of the
188188
* descent algorithm.
189189
*/
190-
func _withContiguousStorage<C : Collection, R>(
191-
for values: C,
192-
_ body: (UnsafeBufferPointer<C.Element>) throws -> R
190+
func _withContiguousStorage<Col : Collection, R>(
191+
for values: Col,
192+
_ body: (UnsafeBufferPointer<Col.Element>) throws -> R
193193
) rethrows -> R {
194194
if let result = try values.withContiguousStorageIfAvailable(body) { return result }
195195
let array = ContiguousArray(values)

0 commit comments

Comments
 (0)