Skip to content

Commit 84d376a

Browse files
Merge pull request #32117 from AnthonyLatsis/redundant-generic-param
[NFC] stdlib: Drop a redundant generic parameter
2 parents 3f903b4 + c4690aa commit 84d376a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/public/core/EitherSequence.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,9 @@ internal typealias _EitherRandomAccessCollection<
173173
extension _EitherRandomAccessCollection: RandomAccessCollection { }
174174

175175
extension _Either {
176-
init<T, C: Collection>(
176+
init<C: Collection>(
177177
_ collection: C
178-
) where Right == AnyCollection<T>, C.Element == T {
178+
) where Right == AnyCollection<C.Element> {
179179
self = .right(AnyCollection(collection))
180180
}
181181
}

0 commit comments

Comments
 (0)