Explain Comments::parse arguments
This commit is contained in:
parent
e4d6c00aa2
commit
d466eb8f66
1 changed files with 2 additions and 0 deletions
|
|
@ -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 =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue