Explain Comments::parse arguments

This commit is contained in:
Oli Scherer 2022-05-25 17:53:39 +00:00
parent e4d6c00aa2
commit d466eb8f66

View File

@ -39,6 +39,8 @@ impl Comments {
Self::parse(path, &content)
}
/// Parse comments in `content`.
/// `path` is only used to emit diagnostics if parsing fails.
pub fn parse(path: &Path, content: &str) -> Self {
let mut this = Self::default();
let error_pattern_regex =