From 7f6835c29a0df7598aab78184f8969cb55283224 Mon Sep 17 00:00:00 2001 From: Mattt Date: Sun, 5 Apr 2020 07:29:46 -0700 Subject: [PATCH] Fix logic error when classifying operators in generate subcommand --- Sources/swift-doc/Supporting Types/Pages/HomePage.swift | 2 +- Sources/swift-doc/Supporting Types/Pages/SidebarPage.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/swift-doc/Supporting Types/Pages/HomePage.swift b/Sources/swift-doc/Supporting Types/Pages/HomePage.swift index 26b974f2..0a099c5b 100644 --- a/Sources/swift-doc/Supporting Types/Pages/HomePage.swift +++ b/Sources/swift-doc/Supporting Types/Pages/HomePage.swift @@ -32,7 +32,7 @@ struct HomePage: Page { globalTypealiasNames.insert(`typealias`.name) case let `operator` as Operator: operatorNames.insert(`operator`.name) - case let function as Function where !function.isOperator: + case let function as Function where function.isOperator: operatorNames.insert(function.name) case let function as Function: globalFunctionNames.insert(function.name) diff --git a/Sources/swift-doc/Supporting Types/Pages/SidebarPage.swift b/Sources/swift-doc/Supporting Types/Pages/SidebarPage.swift index 4ac2961f..8c98b3af 100644 --- a/Sources/swift-doc/Supporting Types/Pages/SidebarPage.swift +++ b/Sources/swift-doc/Supporting Types/Pages/SidebarPage.swift @@ -30,7 +30,7 @@ struct SidebarPage: Page { globalTypealiasNames.insert(`typealias`.name) case let `operator` as Operator: operatorNames.insert(`operator`.name) - case let function as Function where !function.isOperator: + case let function as Function where function.isOperator: operatorNames.insert(function.name) case let function as Function: globalFunctionNames.insert(function.name)