Skip to content

Commit 62955b0

Browse files
committed
[stdlib] Fix copypasto
1 parent 909c63d commit 62955b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/core/CollectionOfOne.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public struct CollectionOfOne<Element>
6969
@warn_unused_result
7070
public func index(before i: Int) -> Int {
7171
_precondition(i == endIndex)
72-
return endIndex
72+
return startIndex
7373
}
7474

7575
public typealias Indices = CountableRange<Int>

0 commit comments

Comments
 (0)