File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -225,23 +225,20 @@ public protocol LosslessStringConvertible: CustomStringConvertible {
225
225
///
226
226
/// let p = Point(x: 21, y: 30)
227
227
/// print(String(reflecting: p))
228
- /// // Prints "p: Point = {
229
- /// // x = 21
230
- /// // y = 30
231
- /// // }"
228
+ /// // Prints "Point(x: 21, y: 30)"
232
229
///
233
230
/// After adding `CustomDebugStringConvertible` conformance by implementing the
234
231
/// `debugDescription` property, `Point` provides its own custom debugging
235
232
/// representation.
236
233
///
237
234
/// extension Point: CustomDebugStringConvertible {
238
235
/// var debugDescription: String {
239
- /// return "Point(x: \(x), y: \(y))"
236
+ /// return "( \(x), \(y))"
240
237
/// }
241
238
/// }
242
239
///
243
240
/// print(String(reflecting: p))
244
- /// // Prints "Point(x: 21, y: 30)"
241
+ /// // Prints "( 21, 30)"
245
242
public protocol CustomDebugStringConvertible {
246
243
/// A textual representation of this instance, suitable for debugging.
247
244
///
You can’t perform that action at this time.
0 commit comments