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

Commit b32cf4a

Browse files
authored
Merge pull request rust-lang#3063 from otavio/add-doc-is_doc_comment
comment: Add documentation to `is_doc_comment` public method
2 parents cab5ea3 + 301ddd3 commit b32cf4a

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)