[SR-11635] Bad/Missing documentation for targetEnvironment() #54046
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
documentation
Additional Detail from JIRA
md5: 44ac0a84a976a3d8367004f655959b90
Issue Description:
https://docs.swift.org/swift-book/ReferenceManual/Statements.html
Under Compiler Control Statements the table shows:
targetEnvironment()
takessimulator
,macCatalyst
But in the GRAMMAR OF A CONDITIONAL COMPILATION BLOCK block it only says:
"environment →
simulator
"So the
macCatalyst
value isn't documented. Is it valid fortargetEnvironment()
? Should Catalyst be supported in some way on operating-system foros()
?The text was updated successfully, but these errors were encountered: