Skip to content

Commit 98ed5f9

Browse files
committed
Improve CodingKey description (add double-quote)
1 parent 33582e6 commit 98ed5f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/core/Codable.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ extension CodingKey {
7171
/// A textual representation of this key.
7272
public var description: String {
7373
let intValue = self.intValue?.description ?? "nil"
74-
return "\(String(describing: type(of: self)))(stringValue: \(stringValue), intValue: \(intValue))"
74+
return "\(String(describing: type(of: self)))(stringValue: \"\(stringValue)\", intValue: \(intValue))"
7575
}
7676

7777
/// A textual representation of this key, suitable for debugging.

0 commit comments

Comments
 (0)