From 5b78eaf4236a93bb90de4e11ff7100779cd6ae70 Mon Sep 17 00:00:00 2001 From: Tiago Lopes Date: Mon, 11 Apr 2022 19:06:39 -0300 Subject: [PATCH] Fix some typos in Chain.md (#144) --- .../AsyncAlgorithms/AsyncAlgorithms.docc/Guides/Chain.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/AsyncAlgorithms/AsyncAlgorithms.docc/Guides/Chain.md b/Sources/AsyncAlgorithms/AsyncAlgorithms.docc/Guides/Chain.md index 60938b0..190e6c3 100644 --- a/Sources/AsyncAlgorithms/AsyncAlgorithms.docc/Guides/Chain.md +++ b/Sources/AsyncAlgorithms/AsyncAlgorithms.docc/Guides/Chain.md @@ -9,8 +9,8 @@ This operation is available for all `AsyncSequence` types who share the same `El ```swift let preamble = [ - "// Some header to add as a preamble" - "//" + "// Some header to add as a preamble", + "//", "" ].async let lines = chain(preamble, URL(fileURLWithPath: "/tmp/Sample.swift").lines) @@ -60,7 +60,7 @@ extension AsyncChain3Sequence.Iterator: Sendable where Base1.AsyncIterator: Send The `chain(_:...)` function takes two or more sequences as arguments. -The resulting `AsyncChainSequence` type is an asynchronous sequence, with conditional conformance to `Sendable` when the arguments conform. +The resulting `AsyncChainSequence` type is an asynchronous sequence, with conditional conformance to `Sendable` when the arguments also conform to it. When any of the asynchronous sequences being chained together come to their end of iteration, the `AsyncChainSequence` iteration proceeds to the next asynchronous sequence. When the last asynchronous sequence reaches the end of iteration, the `AsyncChainSequence` then ends its iteration.