Skip to content

Commit dd45f7e

Browse files
committed
fix compilation errors
1 parent 4846d1e commit dd45f7e

File tree

3 files changed

+17
-18
lines changed

3 files changed

+17
-18
lines changed

src/courses/Linq/Slides/02-ReadNumbersExcercise.cs

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -87,21 +87,21 @@ public void Trash()
8787
var b = 1;
8888
}
8989

90-
//[Exercise(SingleStatement = true)]
91-
//[Hint("`int.Parse` преобразует строку в целое число.")]
92-
//public int[] ParseNumbers(IEnumerable<string> lines)
93-
//{
94-
// return lines
95-
// .Where(line => line != "")
96-
// .Select(int.Parse)
97-
// .ToArray();
98-
// /*uncomment
99-
// return lines
100-
// .Where(...)
101-
// .Select(...)
102-
// ...
103-
// */
104-
//}
90+
[Exercise(SingleStatement = true)]
91+
[Hint("`int.Parse` преобразует строку в целое число.")]
92+
public int[] ParseNumbers(IEnumerable<string> lines)
93+
{
94+
return lines
95+
.Where(line => line != "")
96+
.Select(int.Parse)
97+
.ToArray();
98+
/*uncomment
99+
return lines
100+
.Where(...)
101+
.Select(...)
102+
...
103+
*/
104+
}
105105

106106

107107

src/uLearn.Web/Views/Course/Slide.cshtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
<textarea class='code code-exercise'>@slide.Exercise.Text</textarea>
3232

3333
<text>Ожидаемый вывод на консоль:</text>
34-
<pre class="expected-output"><code>@slide.ExpectedOutput</code></pre>
35-
<pre class="actual-output"><code>@Model.ActualExerciseOutput</code></pre>
34+
<pre class="expected-output"><code>@slide.ExpectedOutput</code></pre>
35+
<pre class="actual-output"><code>@Model.ActualExerciseOutput</code></pre>
3636
@Html.Partial("_ExerciseHints", slide.HintsHtml)
3737
}
3838

src/uLearn/CSharp/SlideWalker.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ public override void Visit(SyntaxNode node)
3636
Head += u;
3737
}
3838
Head += "namespace u \n{\n public class S\n {\n }}";
39-
"/^**^*/"
4039
}
4140

4241
public override void VisitClassDeclaration(ClassDeclarationSyntax node)

0 commit comments

Comments
 (0)