I have a Swift application.
I'm getting the error Expected expression after '?' in ternary expression
from Xcode compiler
in
private func getContentPre(highlight: Highlight) -> String!
{
highlight.contentPre.count == 0 ? return ">" : return highlight.contentPre
}
Apple docs says:
why isn't it possible to return
in ternary expression like using if statement?