comment: Add documentation to is_doc_comment public method

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
This commit is contained in:
Otavio Salvador 2018-09-27 16:45:22 -03:00
parent 4c1b0c2241
commit 301ddd39db

View File

@ -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,