Skip to content

Commit f17048c

Browse files
markdown: fix warnings
1 parent adccbb2 commit f17048c

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

exercises/practice/markdown/.meta/Example.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ public static class Markdown
55
private static string OpeningTag(string tag) => $"<{tag}>";
66
private static string ClosingTag(string tag) => $"</{tag}>";
77
private static string WrapInTag(this string text, string tag) => $"{OpeningTag(tag)}{text}{ClosingTag(tag)}";
8-
private static bool StartsWithTag(this string text, string tag) => text.StartsWith(OpeningTag(tag));
98

109
private const string HeaderMarkdown = "#";
1110
private const string BoldMarkdown = "__";

exercises/practice/markdown/Markdown.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ private static string ParseText(string markdown, bool list)
3131
}
3232
}
3333

34-
private static string ParseHeader(string markdown, bool list, out bool inListAfter)
34+
private static string? ParseHeader(string markdown, bool list, out bool inListAfter)
3535
{
3636
var count = 0;
3737

@@ -68,7 +68,7 @@ private static string ParseHeader(string markdown, bool list, out bool inListAft
6868
}
6969
}
7070

71-
private static string ParseLineItem(string markdown, bool list, out bool inListAfter)
71+
private static string? ParseLineItem(string markdown, bool list, out bool inListAfter)
7272
{
7373
if (markdown.StartsWith("*"))
7474
{

0 commit comments

Comments
 (0)