Skip to content

Commit

Permalink
fix block comment end
Browse files Browse the repository at this point in the history
  • Loading branch information
SWW13 committed Jun 13, 2024
1 parent 7f8cfaa commit 9d59701
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/rune/src/fmt/comments.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ fn parse_block_comment(chars: &mut CharIndices<'_>) -> Option<usize> {
while let Some((_, c)) = chars.next() {
if c == '*' {
if let Some((_, '/')) = chars.clone().next() {
return Some(chars.next()?.0);
return Some(chars.next()?.0 + 1);
}
}
}
Expand Down

0 comments on commit 9d59701

Please sign in to comment.