mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[stdlib] Rename index(...) methods to firstIndex(...)
A la SE-204.
This commit is contained in:
@@ -112,7 +112,7 @@ mirrors.test("BidirectionalStructure") {
|
||||
let description = y.testDescription
|
||||
expectEqual(
|
||||
"[nil: \"a\", nil: \"b\", nil: \"c\", nil: \"",
|
||||
description[description.startIndex..<description.index(of: "d")!])
|
||||
description[description.startIndex..<description.firstIndex(of: "d")!])
|
||||
}
|
||||
|
||||
mirrors.test("LabeledStructure") {
|
||||
|
||||
Reference in New Issue
Block a user