If the docs encounter a break in the comments, we should forget about the accumulated docs until then, since they did not pertain to what we were building docs for

This commit is contained in:
Chadtech 2021-03-30 00:54:04 -04:00
parent 62b4ce0598
commit ce6bdfc757

View file

@ -143,7 +143,9 @@ fn comments_or_new_lines_to_docs<'a>(
docs.push_str(doc_str);
docs.push('\n');
}
Newline | LineComment(_) => {}
Newline | LineComment(_) => {
docs = String::new();
}
}
}
if docs.is_empty() {