]> git.lizzy.rs Git - rust.git/blobdiff - src/comment.rs
Merge pull request #3070 from topecongiro/issue-3030
[rust.git] / src / comment.rs
index b561e411f9ecf5e0ddd1c15aa7d1ef7d2c182474..d4af68e7d25ca15d96b73794686e125ecf86485e 100644 (file)
@@ -73,6 +73,7 @@ pub fn is_block_comment(&self) -> bool {
         }
     }
 
+    /// Returns true if the commenting style is for documentation.
     pub fn is_doc_comment(&self) -> bool {
         match *self {
             CommentStyle::TripleSlash | CommentStyle::Doc => true,