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 a34dfc8 commit 0eed4ccCopy full SHA for 0eed4cc
stdlib/public/core/StringGuts.swift
@@ -251,7 +251,6 @@ extension _StringGuts {
251
// was added to _StringObject. Retry the fast path if so.
252
return try withCString(body)
253
}
254
- _internalInvariant(!_object.isFastZeroTerminated)
255
return try String(self).utf8CString.withUnsafeBufferPointer {
256
let ptr = unsafe $0.baseAddress._unsafelyUnwrappedUnchecked
257
return try unsafe body(ptr)
0 commit comments