Skip to content

Commit ecd9142

Browse files
committed
Changed [UTF8Char] back to UTF8Char[]
1 parent 85be0e6 commit ecd9142

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Source/String.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,15 +232,15 @@ public struct SwiftString /*: Streamable*/ {
232232
return SwiftString.UTF8View(string: nativeStringValue)
233233
}
234234

235-
public var utf8CString: [UTF8Char] {
235+
public var utf8CString: UTF8Char[] {
236236
#if CLR
237237
let result = System.Text.Encoding.UTF8.GetBytes(nativeStringValue)
238238
#elseif ISLAND
239239
let result = RemObjects.Elements.System.Encoding.UTF8.GetBytes(nativeStringValue, false)
240240
#elseif COCOA
241241
let utf8 = nativeStringValue.cStringUsingEncoding(.UTF8StringEncoding)
242242
let len = strlen(utf8) + 1
243-
let result = [UTF8Char](len)
243+
let result = UTF8Char[](len)
244244
memcpy(result, utf8, len)
245245
#endif
246246
return result

0 commit comments

Comments
 (0)