Skip to content

Commit 86d9dea

Browse files
committed
[Calendar] Update Calendar's description and debugDescription to match Darwin version
1 parent 2217687 commit 86d9dea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Foundation/Calendar.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1143,11 +1143,11 @@ extension Calendar : CustomDebugStringConvertible, CustomStringConvertible, Cust
11431143
}
11441144

11451145
public var description: String {
1146-
return _handle.map { $0.description }
1146+
return "\(identifier) (\(_kindDescription))"
11471147
}
11481148

11491149
public var debugDescription: String {
1150-
return _handle.map { $0.debugDescription }
1150+
return "\(identifier) (\(_kindDescription))"
11511151
}
11521152

11531153
public var customMirror: Mirror {

0 commit comments

Comments
 (0)