Skip to content

Commit

Permalink
Auto merge of #116208 - matthiaskrgr:the_loop_that_wasnt, r=Guillaume…
Browse files Browse the repository at this point in the history
…Gomez

rustdoc: while -> if

we will always return once we step inside the while-loop thus `if` is sufficient here
  • Loading branch information
bors committed Sep 28, 2023
2 parents b9dd2ce + 809ab64 commit 2ba4eb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustdoc/html/markdown.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1083,7 +1083,7 @@ impl<'a, 'tcx> TagIterator<'a, 'tcx> {
}

fn parse_in_attribute_block(&mut self) -> Option<LangStringToken<'a>> {
while let Some((pos, c)) = self.inner.next() {
if let Some((pos, c)) = self.inner.next() {
if c == '}' {
self.is_in_attribute_block = false;
return self.next();
Expand Down

0 comments on commit 2ba4eb2

Please sign in to comment.