Fix whitespace in Swift module
PiperOrigin-RevId: 321399202 Change-Id: I0fe62c9c101104809e7452fe1ff206cc3614ad02
This commit is contained in:
parent
001d585562
commit
0dcb8001ad
@ -338,7 +338,7 @@ extension String {
|
|||||||
/// - arguments: A C pointer to a `va_list` of arguments to substitute into `cFormat`.
|
/// - arguments: A C pointer to a `va_list` of arguments to substitute into `cFormat`.
|
||||||
init?(cFormat: UnsafePointer<CChar>, arguments: CVaListPointer) {
|
init?(cFormat: UnsafePointer<CChar>, arguments: CVaListPointer) {
|
||||||
#if os(Linux)
|
#if os(Linux)
|
||||||
let length = Int(vsnprintf(nil, 0, cFormat, arguments) + 1) // null terminator
|
let length = Int(vsnprintf(nil, 0, cFormat, arguments) + 1) // null terminator
|
||||||
guard length > 0 else { return nil }
|
guard length > 0 else { return nil }
|
||||||
let buffer = UnsafeMutablePointer<CChar>.allocate(capacity: length)
|
let buffer = UnsafeMutablePointer<CChar>.allocate(capacity: length)
|
||||||
defer {
|
defer {
|
||||||
|
Loading…
Reference in New Issue
Block a user