Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Commit 0b2291a

Browse files
authored
Merge pull request #53 from SwiftDocOrg/mattt/operator-fix
Fix logic error when classifying operators in generate subcommand
2 parents e5c4b85 + 0ac5744 commit 0b2291a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/swift-doc/Supporting Types/Pages/HomePage.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ struct HomePage: Page {
3232
globalTypealiasNames.insert(`typealias`.name)
3333
case let `operator` as Operator:
3434
operatorNames.insert(`operator`.name)
35-
case let function as Function where !function.isOperator:
35+
case let function as Function where function.isOperator:
3636
operatorNames.insert(function.name)
3737
case let function as Function:
3838
globalFunctionNames.insert(function.name)

Sources/swift-doc/Supporting Types/Pages/SidebarPage.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ struct SidebarPage: Page {
3030
globalTypealiasNames.insert(`typealias`.name)
3131
case let `operator` as Operator:
3232
operatorNames.insert(`operator`.name)
33-
case let function as Function where !function.isOperator:
33+
case let function as Function where function.isOperator:
3434
operatorNames.insert(function.name)
3535
case let function as Function:
3636
globalFunctionNames.insert(function.name)

0 commit comments

Comments
 (0)