Skip to content

Commit

Permalink
Fixing incorrect optional description bug for effected semantic types
Browse files Browse the repository at this point in the history
  • Loading branch information
mobrien-ghost committed Mar 10, 2024
1 parent db1487c commit d047ac2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 ? "?" : "")
}
}

0 comments on commit d047ac2

Please sign in to comment.