dwarf dump: Fix reversed struct/class in def

Fixes #10
This commit is contained in:
Luke Street 2023-11-22 12:21:24 -05:00
parent 854ed74605
commit c8a2d4896a
1 changed files with 2 additions and 2 deletions

View File

@ -1137,8 +1137,8 @@ pub fn struct_def_string(
t: &StructureType, t: &StructureType,
) -> Result<String> { ) -> Result<String> {
let mut out = match t.kind { let mut out = match t.kind {
StructureKind::Struct => "class".to_string(), StructureKind::Struct => "struct".to_string(),
StructureKind::Class => "struct".to_string(), StructureKind::Class => "class".to_string(),
}; };
if let Some(name) = t.name.as_ref() { if let Some(name) = t.name.as_ref() {
write!(out, " {}", name)?; write!(out, " {}", name)?;