Merge pull request #3063 from otavio/add-doc-is_doc_comment
comment: Add documentation to `is_doc_comment` public method
This commit is contained in:
commit
b32cf4aad8
@ -73,6 +73,7 @@ impl<'a> CommentStyle<'a> {
|
||||
}
|
||||
}
|
||||
|
||||
/// Returns true if the commenting style is for documentation.
|
||||
pub fn is_doc_comment(&self) -> bool {
|
||||
match *self {
|
||||
CommentStyle::TripleSlash | CommentStyle::Doc => true,
|
||||
|
Loading…
x
Reference in New Issue
Block a user