diff --git a/src/comment.rs b/src/comment.rs index b561e411f9e..d4af68e7d25 100644 --- a/src/comment.rs +++ b/src/comment.rs @@ -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,