Update how struct access is displayed

This commit is contained in:
Sofia 2025-07-16 00:19:49 +03:00
parent 77439ee34a
commit 97fc468d78

View File

@ -199,8 +199,8 @@ impl Display for ExprKind {
}
ExprKind::StructIndex(expression, type_kind, name) => {
Display::fmt(&expression, f)?;
write!(f, "<{}>", type_kind)?;
write_access(f, name)
write_access(f, name)?;
write!(f, "<{}>", type_kind)
}
}
}