Skip to content

Commit 70b6bda

Browse files
committed
StdlibUnittest: make a var a let (NFC)
Silences a suggestion from the compiler to convert a value which is not mutated into a `let` binding rather than a `var` binding.
1 parent 9136ed2 commit 70b6bda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/private/StdlibUnittest/StdlibUnittest.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1777,7 +1777,7 @@ func _parseDottedVersion(_ s: String) -> [Int] {
17771777
}
17781778

17791779
public func _parseDottedVersionTriple(_ s: String) -> (Int, Int, Int) {
1780-
var array = _parseDottedVersion(s)
1780+
let array = _parseDottedVersion(s)
17811781
if array.count >= 4 {
17821782
fatalError("unexpected version")
17831783
}

0 commit comments

Comments
 (0)