mirror of
https://github.com/apple/swift-system
synced 2026-11-28 05:14:33 +00:00
Disfavor String.init(platformString: UnsafePointer<CChar>)
This commit is contained in:
1 file changed
+1
@@ -20,6 +20,7 @@ extension String {
|
||||
/// This means that, depending on the semantics of the specific platform,
|
||||
/// conversion to a string and back might result in a value that's different
|
||||
/// from the original platform string.
|
||||
@_disfavoredOverload
|
||||
public init(platformString: UnsafePointer<CInterop.PlatformChar>) {
|
||||
self.init(_errorCorrectingPlatformString: platformString)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user