We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c30307e commit 561890fCopy full SHA for 561890f
stdlib/public/core/CString.swift
@@ -186,7 +186,7 @@ extension String {
186
/// `String.init?(validatingCString:)` instead.
187
///
188
/// - Parameter cString: A pointer to a null-terminated UTF-8 code sequence.
189
- @available(*, deprecated, renamed: "String.init(validatingCString:)")
+ @available(swift, deprecated: 6, renamed: "String.init(validatingCString:)")
190
public init?(validatingUTF8 cString: UnsafePointer<CChar>) {
191
let len = UTF8._nullCodeUnitOffset(in: cString)
192
guard let str = cString.withMemoryRebound(to: UInt8.self, capacity: len, {
0 commit comments