From d047ac2478e88f85f83125a9b64d54a7c6124ecc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20O=E2=80=99Brien?= Date: Mon, 11 Mar 2024 01:20:09 +1000 Subject: [PATCH] Fixing incorrect optional description bug for effected semantic types --- Sources/SyntaxSparrow/Public/Semantics/Components/Result.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/SyntaxSparrow/Public/Semantics/Components/Result.swift b/Sources/SyntaxSparrow/Public/Semantics/Components/Result.swift index a3e6a3eb..8a0fcd95 100644 --- a/Sources/SyntaxSparrow/Public/Semantics/Components/Result.swift +++ b/Sources/SyntaxSparrow/Public/Semantics/Components/Result.swift @@ -67,6 +67,6 @@ public struct Result: Hashable, Equatable, CustomStringConvertible { public var description: String { let base = resolver.node.description.trimmed - return isOptional ? "\(base)?" : base + return base + (isOptional ? "?" : "") } }