Skip to content

Commit

Permalink
Merge pull request rust-lang#3063 from otavio/add-doc-is_doc_comment
Browse files Browse the repository at this point in the history
comment: Add documentation to `is_doc_comment` public method
  • Loading branch information
nrc authored Oct 7, 2018
2 parents cab5ea3 + 301ddd3 commit b32cf4a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/comment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit b32cf4a

Please sign in to comment.