Skip to main content

count_lines

Function count_lines 

Source
pub fn count_lines(
    text: &str,
    language: Option<Language>,
) -> (usize, usize, usize)
Expand description

The (code, comments, blanks) a source text holds. A line counts as a comment when it opens with one, so a trailing // note after code reads as code, the same call scc and cloc make.