Light edit of recent doc comments. (#98)

Co-authored-by: Chris Adamson <cadamson@apple.com>
This commit is contained in:
Chris AdamsonandChris Adamson authored and GitHub committed 2022-03-22 10:05:21 -04:00
1 parent 718d647945
commit 33494899af
6 files changed
+15 -15

No files matched your search

@@ -24,7 +24,7 @@ extension AsyncSequence {
return AsyncRemoveDuplicatesSequence(self, predicate: predicate)
}
/// Creates an asynchronous sequence that omits repeated elements by testing them with a predicate.
/// Creates an asynchronous sequence that omits repeated elements by testing them with an error-throwing predicate.
public func removeDuplicates(by predicate: @escaping @Sendable (Element, Element) async throws -> Bool) -> AsyncThrowingRemoveDuplicatesSequence<Self> {
return AsyncThrowingRemoveDuplicatesSequence(self, predicate: predicate)
}
@@ -89,7 +89,7 @@ extension AsyncRemoveDuplicatesSequence: Sendable where Base: Sendable, Base.Ele
extension AsyncRemoveDuplicatesSequence.Iterator: Sendable where Base: Sendable, Base.Element: Sendable, Base.AsyncIterator: Sendable { }
/// An asynchronous sequence that omits repeated elements by testing them with a predicate.
/// An asynchronous sequence that omits repeated elements by testing them with an error-throwing predicate.
public struct AsyncThrowingRemoveDuplicatesSequence<Base: AsyncSequence>: AsyncSequence {
public typealias Element = Base.Element