@@ -30,7 +30,7 @@ import Swift
3030/// for await i in Counter(howHigh: 10) {
3131/// print(i, terminator: " ")
3232/// }
33- /// // Prints: 1 2 3 4 5 6 7 8 9 10
33+ /// // Prints " 1 2 3 4 5 6 7 8 9 10"
3434///
3535/// An `AsyncSequence` doesn't generate or contain the values; it just defines
3636/// how you access them. Along with defining the type of values as an associated
@@ -69,7 +69,7 @@ import Swift
6969/// for await s in stream {
7070/// print(s, terminator: " ")
7171/// }
72- /// // Prints: Odd Even Odd Even Odd Even Odd Even Odd Even
72+ /// // Prints " Odd Even Odd Even Odd Even Odd Even Odd Even"
7373///
7474@available ( SwiftStdlib 5 . 1 , * )
7575@rethrows
@@ -108,7 +108,7 @@ extension AsyncSequence {
108108 /// $0 + $1
109109 /// }
110110 /// print(sum)
111- /// // Prints: 10
111+ /// // Prints "10"
112112 ///
113113 ///
114114 /// - Parameters:
@@ -204,7 +204,7 @@ extension AsyncSequence {
204204 /// let containsDivisibleByThree = await Counter(howHigh: 10)
205205 /// .contains { $0 % 3 == 0 }
206206 /// print(containsDivisibleByThree)
207- /// // Prints: true
207+ /// // Prints " true"
208208 ///
209209 /// The predicate executes each time the asynchronous sequence produces an
210210 /// element, until either the predicate finds a match or the sequence ends.
@@ -231,7 +231,7 @@ extension AsyncSequence {
231231 /// let allLessThanTen = await Counter(howHigh: 10)
232232 /// .allSatisfy { $0 < 10 }
233233 /// print(allLessThanTen)
234- /// // Prints: false
234+ /// // Prints " false"
235235 ///
236236 /// The predicate executes each time the asynchronous sequence produces an
237237 /// element, until either the predicate returns `false` or the sequence ends.
@@ -263,7 +263,7 @@ extension AsyncSequence where Element: Equatable {
263263 /// let containsFive = await Counter(howHigh: 10)
264264 /// .contains(5)
265265 /// print(containsFive)
266- /// // Prints: true
266+ /// // Prints " true"
267267 ///
268268 /// - Parameter search: The element to find in the asynchronous sequence.
269269 /// - Returns: `true` if the method found the element in the asynchronous
@@ -306,7 +306,7 @@ extension AsyncSequence {
306306 /// let divisibleBy2And3 = await Counter(howHigh: 10)
307307 /// .first { $0 % 2 == 0 && $0 % 3 == 0 }
308308 /// print(divisibleBy2And3 ?? "none")
309- /// // Prints: 6
309+ /// // Prints "6"
310310 ///
311311 /// The predicate executes each time the asynchronous sequence produces an
312312 /// element, until either the predicate finds a match or the sequence ends.
@@ -357,7 +357,7 @@ extension AsyncSequence {
357357 /// let min = await RankCounter()
358358 /// .min { $0.rawValue < $1.rawValue }
359359 /// print(min ?? "none")
360- /// // Prints: ace
360+ /// // Prints " ace"
361361 ///
362362 /// - Parameter areInIncreasingOrder: A predicate that returns `true` if its
363363 /// first argument should be ordered before its second argument; otherwise,
@@ -412,7 +412,7 @@ extension AsyncSequence {
412412 /// let max = await RankCounter()
413413 /// .max { $0.rawValue < $1.rawValue }
414414 /// print(max ?? "none")
415- /// // Prints: king
415+ /// // Prints " king"
416416 ///
417417 /// - Parameter areInIncreasingOrder: A predicate that returns `true` if its
418418 /// first argument should be ordered before its second argument; otherwise,
@@ -449,7 +449,7 @@ extension AsyncSequence where Element: Comparable {
449449 /// let min = await Counter(howHigh: 10)
450450 /// .min()
451451 /// print(min ?? "none")
452- /// // Prints: 1
452+ /// // Prints "1"
453453 ///
454454 /// - Returns: The sequence’s minimum element. If the sequence has no
455455 /// elements, returns `nil`.
@@ -469,7 +469,7 @@ extension AsyncSequence where Element: Comparable {
469469 /// let max = await Counter(howHigh: 10)
470470 /// .max()
471471 /// print(max ?? "none")
472- /// // Prints: 10
472+ /// // Prints "10"
473473 ///
474474 /// - Returns: The sequence’s maximum element. If the sequence has no
475475 /// elements, returns `nil`.
0 commit comments