refactor(parse): Consistently use real_s
This commit is contained in:
parent
e9122481a4
commit
053b947aa9
1 changed files with 1 additions and 1 deletions
|
|
@ -615,7 +615,7 @@ impl<'psess, 'src> Lexer<'psess, 'src> {
|
|||
}
|
||||
|
||||
if invalid_infostring {
|
||||
let line_end = s[real_start..].find('\n').unwrap_or(s[real_start..].len());
|
||||
let line_end = real_s.find('\n').unwrap_or(real_s.len());
|
||||
let span = self.mk_sp(
|
||||
frontmatter_opening_end_pos,
|
||||
frontmatter_opening_pos + BytePos(line_end as u32),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue