Skip to content

Commit f6547cc

Browse files
committed
Address feedback from @amartini51.
1 parent 06102a9 commit f6547cc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

stdlib/public/core/LazySequence.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
///
2121
/// let doubled = [1, 2, 3].lazy.map { $0 * 2 }
2222
///
23-
/// Each time an element of the lazy sequence `doubled` is accessed, an element
24-
/// of the underlying array is accessed and transformed by the closure.
23+
/// Each time an element of the lazy sequence `doubled` is accessed, the
24+
/// closure accesses and transforms an element of the underlying array.
2525
///
2626
/// Sequence operations that take closure arguments, such as `map(_:)` and
2727
/// `filter(_:)`, are normally eager: They use the closure immediately and
@@ -124,7 +124,7 @@
124124
/// }
125125
/// }
126126
///
127-
/// Don't actually use `map` for this purpose, however, since it creates
127+
/// Don't actually use `map` for this purpose, however, because it creates
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.

0 commit comments

Comments
 (0)