Skip to content

Commit

Permalink
fix block comment end
Browse files Browse the repository at this point in the history
  • Loading branch information
SWW13 authored and udoprog committed Jun 14, 2024
1 parent 02f8437 commit 2d4da8e
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 2d4da8e

Please sign in to comment.