Skip to content

Commit

Permalink
typos
Browse files Browse the repository at this point in the history
  • Loading branch information
thewilsonator committed Jan 8, 2025
1 parent 49fed34 commit 142589f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion compiler/src/dmd/inline.d
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ public:

static if (asStatements)
{
result = new IfStatement(s.loc, s.param, s._init, econd, ifbody, elsebody, s.endloc);
result = new IfStatement(s.loc, s.param, econd, s._init, ifbody, elsebody, s.endloc);
}
else
{
Expand Down
2 changes: 1 addition & 1 deletion compiler/src/dmd/statement.d
Original file line number Diff line number Diff line change
Expand Up @@ -959,7 +959,7 @@ extern (C++) final class IfStatement : Statement
return new IfStatement(loc,
param ? param.syntaxCopy() : null,
condition.syntaxCopy(),
_init ? init.syntaxCopy() : null,
_init ? _init.syntaxCopy() : null,
ifbody ? ifbody.syntaxCopy() : null,
elsebody ? elsebody.syntaxCopy() : null,
endloc);
Expand Down
2 changes: 1 addition & 1 deletion compiler/src/dmd/statementsem.d
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ Statement statementSemanticVisit(Statement s, Scope* sc)
* } finally { v1.~this(); }
* where controlflow = `for` or `if`
*/
Statment expandInit(S)(S cfs)
Statement expandInit(S)(S cfs)
{
auto ainit = new Statements();
ainit.push(cfs._init);
Expand Down

0 comments on commit 142589f

Please sign in to comment.