Skip to content

Commit a2aab8d

Browse files
committed
[stdlib] Take out primary associated types on LazySequenceProtocol/LazyCollectionProtocol for now
(cherry picked from commit 063c845)
1 parent c5a5a33 commit a2aab8d

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

stdlib/public/core/LazyCollection.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13-
public protocol LazyCollectionProtocol<Elements>
14-
: Collection, LazySequenceProtocol
13+
public protocol LazyCollectionProtocol: Collection, LazySequenceProtocol
1514
where Elements: Collection {}
1615

1716
extension LazyCollectionProtocol {

stdlib/public/core/LazySequence.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128
/// and discards the resulting array. Instead, use `reduce` for summing
129129
/// operations, or `forEach` or a `for`-`in` loop for operations with side
130130
/// effects.
131-
public protocol LazySequenceProtocol<Elements>: Sequence {
131+
public protocol LazySequenceProtocol: Sequence {
132132
/// A `Sequence` that can contain the same elements as this one,
133133
/// possibly with a simpler type.
134134
///

0 commit comments

Comments
 (0)