Skip to content

Commit c0ee9a1

Browse files
authored
Update Exercise.csx
Teacher's decision corrected
1 parent a07d636 commit c0ee9a1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/95-loops/45-mutators/Exercise.csx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ class App
77
var result = "";
88
while (i < str.Length)
99
{
10-
var current = str[i];
10+
var currentChar = str[i];
1111
if ((i + 1) % n == 0)
1212
{
13-
result = result + char.ToUpper(current);
13+
result += char.ToUpper(currentChar);
1414
}
1515
else
1616
{
17-
result = result + current;
17+
result += currentChar;
1818
}
1919

2020
i++;

0 commit comments

Comments
 (0)