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 {
225225///
226226/// let p = Point(x: 21, y: 30)
227227/// print(String(reflecting: p))
228- /// // Prints "p: Point = {
229- /// // x = 21
230- /// // y = 30
231- /// // }"
228+ /// // Prints "Point(x: 21, y: 30)"
232229///
233230/// After adding `CustomDebugStringConvertible` conformance by implementing the
234231/// `debugDescription` property, `Point` provides its own custom debugging
235232/// representation.
236233///
237234/// extension Point: CustomDebugStringConvertible {
238235/// var debugDescription: String {
239- /// return "Point(x: \(x), y: \(y))"
236+ /// return "( \(x), \(y))"
240237/// }
241238/// }
242239///
243240/// print(String(reflecting: p))
244- /// // Prints "Point(x: 21, y: 30)"
241+ /// // Prints "( 21, 30)"
245242public protocol CustomDebugStringConvertible {
246243 /// A textual representation of this instance, suitable for debugging.
247244 ///
You can’t perform that action at this time.
0 commit comments