File tree Expand file tree Collapse file tree 1 file changed +1
-23
lines changed
Sources/OpenAPIRuntime/URICoder/Common Expand file tree Collapse file tree 1 file changed +1
-23
lines changed Original file line number Diff line number Diff line change @@ -60,29 +60,7 @@ typealias URIParsedPairArray = [URIParsedPair]
60
60
// MARK: - Extensions
61
61
62
62
extension URIParsedKey : CustomStringConvertible {
63
- /// A textual representation of this instance.
64
- ///
65
- /// Calling this property directly is discouraged. Instead, convert an
66
- /// instance of any type to a string by using the `String(describing:)`
67
- /// initializer. This initializer works with any type, and uses the custom
68
- /// `description` property for types that conform to
69
- /// `CustomStringConvertible`:
70
- ///
71
- /// struct Point: CustomStringConvertible {
72
- /// let x: Int, y: Int
73
- ///
74
- /// var description: String {
75
- /// return "(\(x), \(y))"
76
- /// }
77
- /// }
78
- ///
79
- /// let p = Point(x: 21, y: 30)
80
- /// let s = String(describing: p)
81
- /// print(s)
82
- /// // Prints "(21, 30)"
83
- ///
84
- /// The conversion of `p` to a string in the assignment to `s` uses the
85
- /// `Point` type's `description` property.
63
+ // swift-format-ignore: AllPublicDeclarationsHaveDocumentation
86
64
var description : String {
87
65
if components. isEmpty { return " <empty> " }
88
66
return components. joined ( separator: " / " )
You can’t perform that action at this time.
0 commit comments