Skip to content

Commit 3903c62

Browse files
committed
Minor style changes
1 parent 76ae479 commit 3903c62

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Sources/TSCBasic/Path.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ public protocol Path: Hashable, Codable, CustomStringConvertible {
7676
var components: [String] { get }
7777
}
7878

79+
/// Default implementations of some protocol stubs.
7980
extension Path {
8081
public var pathString: String {
8182
if filepath.string.isEmpty {
@@ -145,7 +146,10 @@ extension Path {
145146
}
146147
return components
147148
}
149+
}
148150

151+
/// Default implementation of `CustomStringConvertible`.
152+
extension Path {
149153
public var description: String {
150154
return pathString
151155
}
@@ -156,6 +160,7 @@ extension Path {
156160
}
157161
}
158162

163+
/// Default implementation of `Codable`.
159164
extension Path {
160165
public func encode(to encoder: Encoder) throws {
161166
var container = encoder.singleValueContainer()

0 commit comments

Comments
 (0)