Skip to content

Commit 149e91e

Browse files
committed
[stdlib] fix _adHocPrint to TextOutputStream's write. (swiftlang#15108)
1 parent c423212 commit 149e91e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

stdlib/public/core/OutputStream.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -381,8 +381,7 @@ internal func _print_unlocked<T, TargetStream : TextOutputStream>(
381381
_ value: T, _ target: inout TargetStream
382382
) {
383383
if let string = value as? String {
384-
let mirror = Mirror(reflecting: string)
385-
_adHocPrint_unlocked(string, mirror, &target, isDebugPrint: false)
384+
target.write(string)
386385
return
387386
}
388387
// Optional has no representation suitable for display; therefore,

0 commit comments

Comments
 (0)