Merge pull request #5 from karwa/index-doc

Fix documentation for Indexed
This commit is contained in:
Kyle Macomber authored and GitHub committed 2020-10-08 09:57:06 -07:00
commit af3eab4fb5
1 file changed
+2 -2
+2 -2
View File
@@ -24,11 +24,11 @@ for (i, n) in numbers.indexed() {
The `indexed` method returns an `Indexed` type:
```swift
extension Sequence {
extension Collection {
func indexed() -> Indexed<Self>
}
```
`Indexed` scales from a sequence up to a random-access collection, depending on
`Indexed` scales from a collection up to a random-access collection, depending on
its base type.