Skip to content

Commit ddedac2

Browse files
author
Ikko Ashimine
authored
Fix typo in ImportName.cpp
cannonical -> canonical
1 parent fc24be2 commit ddedac2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/ClangImporter/ImportName.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
 (0)