We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fca81fa commit fb975cdCopy full SHA for fb975cd
src/librustc_parse_format/lib.rs
@@ -820,7 +820,7 @@ fn find_skips_from_snippet(
820
}
821
822
let r_start = str_style.map(|r| r + 1).unwrap_or(0);
823
- let r_end = str_style.map(|r| r).unwrap_or(0);
+ let r_end = str_style.unwrap_or(0);
824
let s = &snippet[r_start + 1..snippet.len() - r_end - 1];
825
(find_skips(s, str_style.is_some()), true)
826
0 commit comments