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.
2 parents 9866e69 + 6dfb66f commit 1df2ab8Copy full SHA for 1df2ab8
Legacy/PlaygroundLogger/PlaygroundLogger/ExtensionString.swift
@@ -53,9 +53,7 @@ extension String : Serializable {
53
}
54
55
init (rawBytes: [UInt8]) {
56
- self = rawBytes.withUnsafeBufferPointer { (storage : UnsafeBufferPointer<UInt8>) in
57
- return String._fromCodeUnitSequenceWithRepair(UTF8.self, input: storage).0
58
- }
+ self = String(decoding: rawBytes, as: UTF8.self)
59
60
61
init? (storage: BytesStorage) {
0 commit comments