comment: Add documentation to is_doc_comment
public method
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
This commit is contained in:
parent
4c1b0c2241
commit
301ddd39db
@ -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