[inclusive-language] changed sanity to soundness

This commit is contained in:
Rick van Voorden
2024-01-25 18:18:02 -08:00
parent 141b4d07cb
commit f8ae46b3f3
78 changed files with 133 additions and 133 deletions

View File

@@ -2008,7 +2008,7 @@ bool TrailingClosureAmbiguityFailure::diagnoseAsNote() {
const ParameterList *paramList = callee->getParameters();
const ParamDecl *param = paramList->getArray().back();
// Sanity-check that the trailing closure corresponds to this parameter.
// Soundness-check that the trailing closure corresponds to this parameter.
if (!param->hasInterfaceType() ||
!param->getInterfaceType()->is<AnyFunctionType>())
return false;