mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge pull request #3662 from trentxintong/unicodescalar
SE-0128 - Change unicodescalar initializer to failable
This commit is contained in:
@@ -174,7 +174,7 @@ extension String {
|
||||
case .emptyInput:
|
||||
_sanityCheckFailure("cannot subscript using an endIndex")
|
||||
case .error:
|
||||
return UnicodeScalar(0xfffd)
|
||||
return UnicodeScalar(0xfffd)!
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user