Skip to content

Commit

Permalink
Add missing docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
reitermarkus committed Dec 8, 2022
1 parent fc715b4 commit 511dc9b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ast/ty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ impl Type {
matches!(self, Self::BuiltIn(BuiltInType::Void))
}

/// Check if this is a pointer type.
pub fn is_ptr(&self) -> bool {
matches!(self, Self::Ptr { .. })
}
Expand Down

0 comments on commit 511dc9b

Please sign in to comment.