Skip to content

Commit 06102a9

Browse files
committed
Minor additional revisions
1 parent 90f9dd4 commit 06102a9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

stdlib/public/core/LazySequence.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
/// library explicit permission to store the closure and the sequence
3030
/// in the result, and defer computation until it is needed.
3131
///
32+
/// ## Adding New Lazy Operations
33+
///
3234
/// To add a new lazy sequence operation, extend this protocol with
3335
/// a method that returns a lazy wrapper that itself conforms to
3436
/// `LazySequenceProtocol`. For example, an eager `scan(_:_:)`
@@ -123,7 +125,7 @@
123125
/// }
124126
///
125127
/// Don't actually use `map` for this purpose, however, since it creates
126-
/// and discards a resulting array. Instead, use `reduce` for summing
128+
/// and discards the resulting array. Instead, use `reduce` for summing
127129
/// operations, or `forEach` or a `for`-`in` loop for operations with side
128130
/// effects.
129131
public protocol LazySequenceProtocol: Sequence {

0 commit comments

Comments
 (0)