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 7bd0a9f commit 9c18764Copy full SHA for 9c18764
stdlib/public/core/PrintForDebugger.swift
@@ -263,23 +263,10 @@ public enum _PrintForDebugger {
263
}
264
265
266
- struct StringOutput: OutputStream {
267
- var data = ""
268
- mutating func _lock() {
269
- }
270
-
271
- mutating func _unlock() {
272
273
274
- mutating func write(_ string: String) {
275
- data += string
276
277
278
279
public static func printForDebugger(value: Any) -> String {
280
var maxItemCounter = Int.max
281
var refs = Set<ObjectIdentifier>()
282
- var targetStream = StringOutput()
+ var targetStream = ""
283
284
printForDebuggerImpl(
285
value: value,
0 commit comments