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:
Nick Cameron 2018-10-08 10:41:18 +13:00 committed by GitHub
commit b32cf4aad8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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,