Skip to content

Commit 5e5614e

Browse files
use default branches for unknown symbol kinds (#133)
1 parent 13b644a commit 5e5614e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Sources/SwiftDocC/Infrastructure/Topic Graph/AutomaticCuration.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
This source file is part of the Swift.org open source project
33

4-
Copyright (c) 2021 Apple Inc. and the Swift project authors
4+
Copyright (c) 2021-2022 Apple Inc. and the Swift project authors
55
Licensed under Apache License v2.0 with Runtime Library Exception
66

77
See https://swift.org/LICENSE.txt for license information
@@ -203,7 +203,7 @@ extension AutomaticCuration {
203203
case .`typealias`: return "Type Aliases"
204204
case .`var`: return "Variables"
205205
case .module: return "Modules"
206-
case .unknown: return "Symbols"
206+
default: return "Symbols"
207207
}
208208
}
209209

Sources/SwiftDocC/Model/DocumentationNode.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ public struct DocumentationNode {
457457
case .`var`: return .globalVariable
458458

459459
case .module: return .module
460-
case .unknown: return .unknown
460+
default: return .unknown
461461
}
462462
}
463463

0 commit comments

Comments
 (0)