Skip to content

Commit 54e652f

Browse files
authored
Merge pull request swiftlang#16539 from PhilArmstrong/PhilArmstrong-patch-1
2 parents 7ff12fb + 534a5e6 commit 54e652f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Markup/LineList.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ std::string LineList::str() const {
2525
return "";
2626

2727
auto FirstLine = Lines.begin();
28-
while (FirstLine->Text.empty() && FirstLine != Lines.end())
28+
while (FirstLine != Lines.end() && FirstLine->Text.empty())
2929
++FirstLine;
3030

3131
if (FirstLine == Lines.end())

0 commit comments

Comments
 (0)