Skip to content

Commit 15d3124

Browse files
Update Sources/OpenAPIRuntime/URICoder/Common/URIParsedTypes.swift
Co-authored-by: Si Beaumont <[email protected]>
1 parent c3d9ec3 commit 15d3124

File tree

1 file changed

+1
-23
lines changed

1 file changed

+1
-23
lines changed

Sources/OpenAPIRuntime/URICoder/Common/URIParsedTypes.swift

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -60,29 +60,7 @@ typealias URIParsedPairArray = [URIParsedPair]
6060
// MARK: - Extensions
6161

6262
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
8664
var description: String {
8765
if components.isEmpty { return "<empty>" }
8866
return components.joined(separator: "/")

0 commit comments

Comments
 (0)