From 301ddd39db4cbb6196edd6c8854730bdb6241615 Mon Sep 17 00:00:00 2001 From: Otavio Salvador Date: Thu, 27 Sep 2018 16:45:22 -0300 Subject: [PATCH] comment: Add documentation to `is_doc_comment` public method Signed-off-by: Otavio Salvador --- src/comment.rs | 1 + 1 file changed, 1 insertion(+) 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,