Skip to content

Commit e185e38

Browse files
committed
Fix another IUO that appears in a type.
Another case that SE-0054 disallows.
1 parent 32cfece commit e185e38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Foundation/NSString.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1191,7 +1191,7 @@ extension NSString {
11911191
}
11921192

11931193
public convenience init(format: NSString, _ args: CVarArg...) {
1194-
let str = withVaList(args) { (vaPtr) -> CFString! in
1194+
let str = withVaList(args) { (vaPtr) -> CFString? in
11951195
CFStringCreateWithFormatAndArguments(kCFAllocatorSystemDefault, nil, format._cfObject, vaPtr)
11961196
}!
11971197
self.init(str._swiftObject)

0 commit comments

Comments
 (0)