mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
stdlib/NSString APIs on String: change stringByRemovingPercentEncoding property
type to be an optional string; add tests Swift SVN r21021
This commit is contained in:
@@ -1295,7 +1295,7 @@ extension String {
|
||||
/// Returns a new string made from the `String` by replacing
|
||||
/// all percent encoded sequences with the matching UTF-8
|
||||
/// characters.
|
||||
public var stringByRemovingPercentEncoding: String {
|
||||
public var stringByRemovingPercentEncoding: String? {
|
||||
return _ns.stringByRemovingPercentEncoding
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user