File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -643,7 +643,7 @@ findSwiftNameAttr(const clang::Decl *decl, ImportNameVersion version) {
643643 }
644644
645645 if (auto enumDecl = dyn_cast<clang::EnumDecl>(decl)) {
646- // Intentionally don't get the cannonical type here.
646+ // Intentionally don't get the canonical type here.
647647 if (auto typedefType = dyn_cast<clang::TypedefType>(enumDecl->getIntegerType ().getTypePtr ())) {
648648 // If the typedef is available in Swift, the user will get ambiguity.
649649 // It also means they may not have intended this API to be imported like this.
@@ -1781,7 +1781,7 @@ ImportedName NameImporter::importNameImpl(const clang::NamedDecl *D,
17811781 // If this enum inherits from a typedef we can compute the name from the
17821782 // typedef (even if it's an anonymous enum).
17831783 if (auto enumDecl = dyn_cast<clang::EnumDecl>(D)) {
1784- // Intentionally don't get the cannonical type here.
1784+ // Intentionally don't get the canonical type here.
17851785 if (auto typedefType = dyn_cast<clang::TypedefType>(enumDecl->getIntegerType ().getTypePtr ())) {
17861786 // If the typedef is available in Swift, the user will get ambiguity.
17871787 // It also means they may not have intended this API to be imported like this.
You can’t perform that action at this time.
0 commit comments