Fix a variety of user-visible and comment typos
llvm-svn: 196038
diff --git a/clang-tools-extra/modularize/Modularize.cpp b/clang-tools-extra/modularize/Modularize.cpp
index e9c2cf7..cc38723 100644
--- a/clang-tools-extra/modularize/Modularize.cpp
+++ b/clang-tools-extra/modularize/Modularize.cpp
@@ -753,7 +753,7 @@
// Check for the same entity being defined in multiple places.
for (EntityMap::iterator E = Entities.begin(), EEnd = Entities.end();
E != EEnd; ++E) {
- // If only one occurance, exit early.
+ // If only one occurrence, exit early.
if (E->second.size() == 1)
continue;
// Clear entity locations.
@@ -771,7 +771,7 @@
for (EntryBinArray::iterator DI = EntryBins.begin(), DE = EntryBins.end();
DI != DE; ++DI, ++KindIndex) {
int ECount = DI->size();
- // If only 1 occurance, skip;
+ // If only 1 occurrence, skip;
if (ECount <= 1)
continue;
LocationArray::iterator FI = DI->begin();