diff --git a/crates/rune/src/fmt/comments.rs b/crates/rune/src/fmt/comments.rs index 0b6340beb..d60f5b9ae 100644 --- a/crates/rune/src/fmt/comments.rs +++ b/crates/rune/src/fmt/comments.rs @@ -114,7 +114,7 @@ fn parse_block_comment(chars: &mut CharIndices<'_>) -> Option { 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); } } }