Skip to content

Commit 622e307

Browse files
authored
Spelling lib migrator (#58574)
* spelling: overridden Signed-off-by: Josh Soref <[email protected]> * spelling: parameter Signed-off-by: Josh Soref <[email protected]> * spelling: would Signed-off-by: Josh Soref <[email protected]> Co-authored-by: Josh Soref <[email protected]>
1 parent 1075bea commit 622e307

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/Migrator/APIDiffMigratorPass.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1300,7 +1300,7 @@ struct APIDiffMigratorPass : public ASTMigratorPass, public SourceEntityWalker {
13001300
if (Params.size() <= Idx)
13011301
return;
13021302

1303-
// Get the internal name of the changed paramter.
1303+
// Get the internal name of the changed parameter.
13041304
auto VariableName = Params[Idx]->getParameterName().str();
13051305

13061306
// Insert the helper function to convert the type back to raw types.
@@ -1432,7 +1432,7 @@ struct APIDiffMigratorPass : public ASTMigratorPass, public SourceEntityWalker {
14321432
if (auto *VD = dyn_cast<VarDecl>(D)) {
14331433
for (auto *Item: getRelatedDiffItems(VD)) {
14341434
if (auto *CD = dyn_cast<CommonDiffItem>(Item)) {
1435-
// If the overriden property has been renamed, we should rename
1435+
// If the overridden property has been renamed, we should rename
14361436
// this property decl as well.
14371437
if (CD->isRename() && VD->getNameLoc().isValid()) {
14381438
Editor.replaceToken(VD->getNameLoc(), CD->getNewName());

lib/Migrator/Diff.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,7 @@ class diff_match_patch {
662662
static string_t diff_linesToCharsMunge(const string_t &text, std::map<LinePtr, size_t> &lineHash) {
663663
string_t chars;
664664
// Walk the text, pulling out a substring for each line.
665-
// text.split('\n') would would temporarily double our memory footprint.
665+
// text.split('\n') would temporarily double our memory footprint.
666666
// Modifying text would create many large strings to garbage collect.
667667
typename string_t::size_type lineLen;
668668
for (typename string_t::const_pointer lineStart = text.c_str(), textEnd = lineStart + text.size(); lineStart < textEnd; lineStart += lineLen + 1) {

0 commit comments

Comments
 (0)