Skip to content

Commit

Permalink
dwarf dump: Fix reversed struct/class in def
Browse files Browse the repository at this point in the history
  • Loading branch information
encounter committed Nov 22, 2023
1 parent 854ed74 commit c8a2d48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/util/dwarf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1137,8 +1137,8 @@ pub fn struct_def_string(
t: &StructureType,
) -> Result<String> {
let mut out = match t.kind {
StructureKind::Struct => "class".to_string(),
StructureKind::Class => "struct".to_string(),
StructureKind::Struct => "struct".to_string(),
StructureKind::Class => "class".to_string(),
};
if let Some(name) = t.name.as_ref() {
write!(out, " {}", name)?;
Expand Down

0 comments on commit c8a2d48

Please sign in to comment.