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 192d275 commit 4c00395Copy full SHA for 4c00395
stdlib/public/core/CString.swift
@@ -240,7 +240,7 @@ extension String {
240
public init?(validatingCString nullTerminatedUTF8: inout CChar) {
241
guard nullTerminatedUTF8 == 0 else {
242
_preconditionFailure(
243
- "input of String.init(validatingUTF8:) must be null-terminated"
+ "input of String.init(validatingCString:) must be null-terminated"
244
)
245
}
246
self = ""
0 commit comments