Skip to content

Commit 655f085

Browse files
committed
[stdlib] LazySequenceProtocol: Take out duplicate where clause
1 parent 9f177d1 commit 655f085

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

stdlib/public/core/LazySequence.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +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
132-
where Elements.Element == Element {
131+
public protocol LazySequenceProtocol<Elements>: Sequence {
133132
/// A `Sequence` that can contain the same elements as this one,
134133
/// possibly with a simpler type.
135134
///

0 commit comments

Comments
 (0)