File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -236,6 +236,8 @@ extension AsyncSequence {
236236 /// The predicate executes each time the asynchronous sequence produces an
237237 /// element, until either the predicate returns `false` or the sequence ends.
238238 ///
239+ /// If the asynchronous sequence is empty, this method returns `true`.
240+ ///
239241 /// - Parameter predicate: A closure that takes an element of the asynchronous
240242 /// sequence as its argument and returns a Boolean value that indicates
241243 /// whether the passed element satisfies a condition.
Original file line number Diff line number Diff line change @@ -529,6 +529,8 @@ extension Sequence {
529529 /// let allHaveAtLeastFive = names.allSatisfy({ $0.count >= 5 })
530530 /// // allHaveAtLeastFive == true
531531 ///
532+ /// If the sequence is empty, this method returns `true`.
533+ ///
532534 /// - Parameter predicate: A closure that takes an element of the sequence
533535 /// as its argument and returns a Boolean value that indicates whether
534536 /// the passed element satisfies a condition.
You can’t perform that action at this time.
0 commit comments