Skip to content

Commit a9a8af2

Browse files
committed
test: fix some warnings in closure-multivalue test
Change `var` to let as per the warning. NFC.
1 parent ad34f89 commit a9a8af2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/DebugInfo/closure-multivalue.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ public func sort(_ a: String, b: String) -> Bool {
2020
}
2121

2222
public func demo() {
23-
var names = ["Sean", "Barry", "Kate"]
24-
var sortedNames = names.sorted(isOrderedBefore: sort)
23+
let names = ["Sean", "Barry", "Kate"]
24+
let sortedNames = names.sorted(isOrderedBefore: sort)
2525
var sortedNamesAsString : String = String()
2626
for name in sortedNames {
2727
sortedNamesAsString += ("\(name), ")

0 commit comments

Comments
 (0)