[SourceKit] Fix typo in SwiftSourceDocInfo.cpp

This commit is contained in:
Ikko Ashimine
2022-09-03 22:55:03 +09:00
parent 08b6802e79
commit 4458b4d382

View File

@@ -1286,7 +1286,7 @@ static bool passNameInfoForDecl(ResolvedCursorInfo CursorInfo,
auto *VD = CursorInfo.ValueD;
// If the given name is not a function name, and the cursor points to
// a contructor call, we use the type declaration instead of the init
// a constructor call, we use the type declaration instead of the init
// declaration to translate the name.
if (Info.ArgNames.empty() && !Info.IsZeroArgSelector) {
if (auto *TD = CursorInfo.CtorTyRef) {