File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -387,12 +387,11 @@ public protocol Collection: Sequence {
387
387
/// Returns an iterator over the elements of the collection.
388
388
override __consuming func makeIterator( ) -> Iterator
389
389
390
- /// A sequence that represents a contiguous subrange of the collection's
391
- /// elements.
390
+ /// A collection representing a contiguous subrange of this collection's
391
+ /// elements. The subsequence shares indices with the original collection.
392
392
///
393
- /// This associated type appears as a requirement in the `Sequence`
394
- /// protocol, but it is restated here with stricter constraints. In a
395
- /// collection, the subsequence should also conform to `Collection`.
393
+ /// The default subsequence type for collections that don't define their own
394
+ /// is `Slice`.
396
395
associatedtype SubSequence : Collection = Slice < Self >
397
396
where SubSequence. Index == Index ,
398
397
Element == SubSequence . Element ,
You can’t perform that action at this time.
0 commit comments