mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 22:34:45 +00:00
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:
parent
62b4ce0598
commit
ce6bdfc757
1 changed files with 3 additions and 1 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue