diff --git a/src/row.rs b/src/row.rs index 0564d13..5a31442 100644 --- a/src/row.rs +++ b/src/row.rs @@ -328,7 +328,7 @@ impl Row { c: char, chars: &[char], ) -> bool { - if opts.comments() && c == '/' && *index < chars.len() { + if opts.multiline_comments() && c == '/' && *index < chars.len() { if let Some(next_char) = chars.get(index.saturating_add(1)) { if *next_char == '*' { let closing_index =