From 2d4da8e335e343fe055ad44ce98ce8e3596482eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20W=C3=B6rner?= Date: Thu, 13 Jun 2024 23:00:49 +0200 Subject: [PATCH] fix block comment end --- crates/rune/src/fmt/comments.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } } }