Skip to content

Commit 1df2ab8

Browse files
committed
Merge branch 'master' into runtime-framework-and-improved-logger
2 parents 9866e69 + 6dfb66f commit 1df2ab8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Diff for: Legacy/PlaygroundLogger/PlaygroundLogger/ExtensionString.swift

+1-3
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,7 @@ extension String : Serializable {
5353
}
5454

5555
init (rawBytes: [UInt8]) {
56-
self = rawBytes.withUnsafeBufferPointer { (storage : UnsafeBufferPointer<UInt8>) in
57-
return String._fromCodeUnitSequenceWithRepair(UTF8.self, input: storage).0
58-
}
56+
self = String(decoding: rawBytes, as: UTF8.self)
5957
}
6058

6159
init? (storage: BytesStorage) {

0 commit comments

Comments
 (0)