Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 301ddd3

Browse files
committed
comment: Add documentation to is_doc_comment public method
Signed-off-by: Otavio Salvador <[email protected]>
1 parent 4c1b0c2 commit 301ddd3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/comment.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ impl<'a> CommentStyle<'a> {
7373
}
7474
}
7575

76+
/// Returns true if the commenting style is for documentation.
7677
pub fn is_doc_comment(&self) -> bool {
7778
match *self {
7879
CommentStyle::TripleSlash | CommentStyle::Doc => true,

0 commit comments

Comments
 (0)