Skip to content

Commit 034638c

Browse files
committed
Foundation: remove duplicated conformance (NFC)
Remove the duplicated conformance specification which causes a warning to be emitted.
1 parent 12ee2c8 commit 034638c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Foundation/NSRange.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ extension NSRange {
258258
}
259259

260260
public init<R: RangeExpression, S: StringProtocol>(_ region: R, in target: S)
261-
where R.Bound == S.Index, S.Index == String.Index {
261+
where R.Bound == S.Index {
262262
let r = region.relative(to: target)
263263
self = NSRange(
264264
location: r.lowerBound.encodedOffset - target.startIndex.encodedOffset,

0 commit comments

Comments
 (0)