Skip to content

Commit 8516651

Browse files
committed
Fix up type_ in rust bindings
1 parent fea5551 commit 8516651

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust/ruby-prism/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ impl<'pr> Comment<'pr> {
372372

373373
/// Returns the type of the comment.
374374
pub fn type_(&self) -> CommentType {
375-
let type_ = unsafe { self.comment.as_ref().type_ };
375+
let type_ = unsafe { self.content.as_ref().type_ };
376376
if type_ == pm_comment_type_t::PM_COMMENT_EMBDOC {
377377
CommentType::EmbDocComment
378378
} else {

0 commit comments

Comments
 (0)