File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -370,8 +370,10 @@ public protocol Sequence<Element> {
370
370
/// should only implement this method if they can do it in better than linear
371
371
/// time.
372
372
///
373
- /// This method must not return non-nil on sequences that are destructively
374
- /// consumed by iteration.
373
+ /// For sequences that are destructively consumed by iteration, calling this
374
+ /// method must not consume any elements. (Such sequences usually leave this
375
+ /// method with its default, `nil`-returning implementation, which trivially
376
+ /// satisfies this requirement.)
375
377
///
376
378
/// - Returns: `nil` if containment cannot be verified in better than linear
377
379
/// time; otherwise, the method returns a boolean value indicating whether
You can’t perform that action at this time.
0 commit comments