Skip to content

Commit af3eab4

Browse files
author
Kyle Macomber
authored
Merge pull request #5 from karwa/index-doc
Fix documentation for Indexed
2 parents b1dee14 + a890244 commit af3eab4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Guides/Indexed.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ for (i, n) in numbers.indexed() {
2424
The `indexed` method returns an `Indexed` type:
2525

2626
```swift
27-
extension Sequence {
27+
extension Collection {
2828
func indexed() -> Indexed<Self>
2929
}
3030
```
3131

32-
`Indexed` scales from a sequence up to a random-access collection, depending on
32+
`Indexed` scales from a collection up to a random-access collection, depending on
3333
its base type.
3434

0 commit comments

Comments
 (0)