← every case · 8000 · what the line counts as
the same empty /// line as case 8040, this time the last one, with code and no more documentation under it. A counter that decides an empty marker by what surrounds it has nothing to look at here, and the answer has to come out the same, since the line itself has not changed
| 1 | commentscommentscommentscommentscomments Markdown | /// A documented function. |
| 2 | commentsextracommentscommentscomments Markdown | /// |
| 3 | codecodecodecodecode | fn documented() {} |
stringcommentthe tag around another language
cloc --json cases/8000-what_the_line_counts_as/8050-doc_comment_with_no_text_ending_a_block/input.rs
mezura cases/8000-what_the_line_counts_as/8050-doc_comment_with_no_text_ending_a_block/input.rs --output json --hide timing --counting content
mezura cases/8000-what_the_line_counts_as/8050-doc_comment_with_no_text_ending_a_block/input.rs --output json --hide timing --counting region
scc --format json cases/8000-what_the_line_counts_as/8050-doc_comment_with_no_text_ending_a_block/input.rs
the '///' line is counted as neither comment nor blank, so a file of 3 lines is reported as 2
tokei --output json cases/8000-what_the_line_counts_as/8050-doc_comment_with_no_text_ending_a_block/input.rs