mirror of
https://github.com/apple/swift-algorithms
synced 2026-11-25 04:27:47 +00:00
Merge pull request #5 from karwa/index-doc
Fix documentation for Indexed
This commit is contained in:
1 file changed
+2
-2
+2
-2
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user