aboutsummaryrefslogtreecommitdiff
path: root/src/ast.rs
diff options
context:
space:
mode:
authortslil <tslil@posteo.de>2026-05-01 11:59:10 +0100
committertslil <tslil@posteo.de>2026-05-01 12:29:19 +0100
commit8b540449755ca8e73feb88e708f22fd292ace610 (patch)
tree29d9d2b8e41b2715a5deb55109cba6a42de341c7 /src/ast.rs
parent8839959fd05a04f2d37461ab842d23107b104d20 (diff)
make parser more lenient, add the one simplex example, fix naming for records
Diffstat (limited to 'src/ast.rs')
-rw-r--r--src/ast.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ast.rs b/src/ast.rs
index 24d5b9b..fab1236 100644
--- a/src/ast.rs
+++ b/src/ast.rs
@@ -176,7 +176,7 @@ pub enum Instance {
field: String,
},
- #[display("case {} of {{ {} }}", scrutinee, arms.iter().map(|a| a.to_string()).collect::<Vec<_>>().join(" | "))]
+ #[display("case {} of [ {} ]", scrutinee, arms.iter().map(|a| a.to_string()).collect::<Vec<_>>().join(" | "))]
Case {
scrutinee: Box<Element>,
arms: Vec<InstCaseArm>,