Skip to content

Commit 6a9e38e

Browse files
authored
Merge pull request #185 from glessard/disfavoredOverload-1.3.0
[1.3.x] Disfavor String.init(platformString: UnsafePointer<CChar>)
2 parents 2b30f88 + dd45c80 commit 6a9e38e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/System/PlatformString.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ extension String {
2020
/// This means that, depending on the semantics of the specific platform,
2121
/// conversion to a string and back might result in a value that's different
2222
/// from the original platform string.
23+
@_disfavoredOverload
2324
public init(platformString: UnsafePointer<CInterop.PlatformChar>) {
2425
self.init(_errorCorrectingPlatformString: platformString)
2526
}

0 commit comments

Comments
 (0)