Skip to content

Commit

Permalink
Fix index check
Browse files Browse the repository at this point in the history
  • Loading branch information
valterc committed Apr 18, 2023
1 parent a911877 commit cd5d11e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Markdig/Helpers/StringLineGroup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ private char NextCharNewLine()
goto Return;

MoveToNewLine:
if (SliceIndex < _lines.Count - 1)
if (SliceIndex < _lines.Lines.Length - 1)
{
SliceIndex++;
_offset = -1;
Expand Down

0 comments on commit cd5d11e

Please sign in to comment.