Skip to content

Commit 94a9a9b

Browse files
Fixing let var warnings on CheckCollectionInstance.swift
1 parent 2587df2 commit 94a9a9b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

stdlib/private/StdlibCollectionUnittest/CheckCollectionInstance.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ public func checkOneLevelOfForwardCollection<
467467
}
468468
}
469469

470-
var allIndices = Array(collection.indices)
470+
let allIndices = Array(collection.indices)
471471

472472
if expectedArray.count >= 2 {
473473
for i in 0..<allIndices.count-1 {
@@ -693,7 +693,7 @@ public func checkOneLevelOfBidirectionalCollection<
693693
}
694694
}
695695

696-
var allIndices = Array(collection.indices)
696+
let allIndices = Array(collection.indices)
697697

698698
if expectedArray.count >= 2 {
699699
for i in 0..<allIndices.count-1 {
@@ -978,7 +978,7 @@ public func checkOneLevelOfRandomAccessCollection<
978978
}
979979
}
980980

981-
var allIndices = Array(collection.indices)
981+
let allIndices = Array(collection.indices)
982982

983983
if expectedArray.count >= 2 {
984984
for i in 0..<allIndices.count-1 {
@@ -1237,7 +1237,7 @@ public func checkOneLevelOfForwardCollection<
12371237
}
12381238
}
12391239

1240-
var allIndices = Array(collection.indices)
1240+
let allIndices = Array(collection.indices)
12411241

12421242
if expectedArray.count >= 2 {
12431243
for i in 0..<allIndices.count-1 {
@@ -1463,7 +1463,7 @@ public func checkOneLevelOfBidirectionalCollection<
14631463
}
14641464
}
14651465

1466-
var allIndices = Array(collection.indices)
1466+
let allIndices = Array(collection.indices)
14671467

14681468
if expectedArray.count >= 2 {
14691469
for i in 0..<allIndices.count-1 {
@@ -1748,7 +1748,7 @@ public func checkOneLevelOfRandomAccessCollection<
17481748
}
17491749
}
17501750

1751-
var allIndices = Array(collection.indices)
1751+
let allIndices = Array(collection.indices)
17521752

17531753
if expectedArray.count >= 2 {
17541754
for i in 0..<allIndices.count-1 {

0 commit comments

Comments
 (0)