Skip to content

Commit cc0d88b

Browse files
committed
Move OnePlusOne call in Algorithm.example.cs
1 parent f46a821 commit cc0d88b

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

Components/Algorithms/Algorithm.example.cs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,10 @@ internal class SuperAlgorithm : Algorithm
1919
// private method, you can add as many as you want
2020
private string GetMessage(string text)
2121
{
22-
return "Im the algorithm! " +
23-
text +
24-
exclamationMark +
25-
" 1 + 1 = " +
26-
// method defined in the AlgorithmsCore/BaseClassTools.cs
27-
OnePlusOne();
22+
// method defined in the AlgorithmsCore/BaseClassTools.cs
23+
int two = OnePlusOne();
24+
25+
return "Im the algorithm! " + text + exclamationMark + " 1 + 1 = " + two;
2826
}
2927

3028
// ovverride Display method to handle algorithm output

0 commit comments

Comments
 (0)