We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d95948c + b4b66f6 commit 2872937Copy full SHA for 2872937
src/tools/lint-docs/src/lib.rs
@@ -143,8 +143,8 @@ impl<'a> LintExtractor<'a> {
143
Some((lineno, line)) => {
144
let line = line.trim();
145
if let Some(text) = line.strip_prefix("/// ") {
146
- doc_lines.push(text.trim().to_string());
147
- } else if line.starts_with("///") {
+ doc_lines.push(text.to_string());
+ } else if line == "///" {
148
doc_lines.push("".to_string());
149
} else if line.starts_with("// ") {
150
// Ignore comments.
0 commit comments