We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fea5551 commit 8516651Copy full SHA for 8516651
rust/ruby-prism/src/lib.rs
@@ -372,7 +372,7 @@ impl<'pr> Comment<'pr> {
372
373
/// Returns the type of the comment.
374
pub fn type_(&self) -> CommentType {
375
- let type_ = unsafe { self.comment.as_ref().type_ };
+ let type_ = unsafe { self.content.as_ref().type_ };
376
if type_ == pm_comment_type_t::PM_COMMENT_EMBDOC {
377
CommentType::EmbDocComment
378
} else {
0 commit comments