@@ -261,7 +261,7 @@ extension BidirectionalCollection {
261
261
with other: Other ,
262
262
by areEquivalent: ( Element , Other . Element ) throws -> Bool
263
263
) rethrows -> SubSequence {
264
- let ( index, _) = try startsOfCommonSuffix ( with: other, by: areEquivalent)
264
+ let ( index, _) = try startOfCommonSuffix ( with: other, by: areEquivalent)
265
265
return self [ index... ]
266
266
}
267
267
}
@@ -281,7 +281,7 @@ extension BidirectionalCollection where Element: Equatable {
281
281
282
282
extension Collection {
283
283
@inlinable
284
- public func endsOfCommonPrefix < Other: Collection > (
284
+ public func endOfCommonPrefix < Other: Collection > (
285
285
with other: Other ,
286
286
by areEquivalent: ( Element , Other . Element ) throws -> Bool
287
287
) rethrows -> ( Index , Other . Index ) {
@@ -301,10 +301,10 @@ extension Collection {
301
301
302
302
extension Collection where Element: Equatable {
303
303
@inlinable
304
- public func endsOfCommonPrefix < Other: Collection > (
304
+ public func endOfCommonPrefix < Other: Collection > (
305
305
with other: Other
306
306
) -> ( Index , Other . Index ) where Other. Element == Element {
307
- endsOfCommonPrefix ( with: other, by: == )
307
+ endOfCommonPrefix ( with: other, by: == )
308
308
}
309
309
}
310
310
@@ -314,7 +314,7 @@ extension Collection where Element: Equatable {
314
314
315
315
extension BidirectionalCollection {
316
316
@inlinable
317
- public func startsOfCommonSuffix < Other: BidirectionalCollection > (
317
+ public func startOfCommonSuffix < Other: BidirectionalCollection > (
318
318
with other: Other ,
319
319
by areEquivalent: ( Element , Other . Element ) throws -> Bool
320
320
) rethrows -> ( Index , Other . Index ) {
@@ -342,9 +342,9 @@ extension BidirectionalCollection {
342
342
343
343
extension BidirectionalCollection where Element: Equatable {
344
344
@inlinable
345
- public func startsOfCommonSuffix < Other: BidirectionalCollection > (
345
+ public func startOfCommonSuffix < Other: BidirectionalCollection > (
346
346
with other: Other
347
347
) -> ( Index , Other . Index ) where Other. Element == Element {
348
- startsOfCommonSuffix ( with: other, by: == )
348
+ startOfCommonSuffix ( with: other, by: == )
349
349
}
350
350
}
0 commit comments