mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[inclusive-language] changed sanity to soundness
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user