Update benchmark code for SE-0081 moved where clause - NFC

This commit is contained in:
David Farler
2016-07-26 15:20:16 -07:00
parent 8cb358195d
commit c2f12980a8
3 changed files with 8 additions and 7 deletions

View File

@@ -35,11 +35,11 @@ extension Array : MyArrayBufferProtocol {
}
}
func myArrayReplace<B: MyArrayBufferProtocol, C: Collection
where C.Iterator.Element == B.Element, B.Index == Int
>(
_ target: inout B, _ subRange: Range<Int>, _ newValues: C
) {
func myArrayReplace<
B: MyArrayBufferProtocol,
C: Collection
>(_ target: inout B, _ subRange: Range<Int>, _ newValues: C)
where C.Iterator.Element == B.Element, B.Index == Int {
target.myReplace(subRange, with: newValues)
}