Skip to main content

extend_trailing_comment

Function extend_trailing_comment 

Source
pub fn extend_trailing_comment(src: &str, end: usize) -> usize
Expand description

If the remainder of the line after end is only a trailing // line comment, extend end to include it (but not the newline). Otherwise return end.