From 4c2d05cbe14d10f6186b737bd7ddecd1a6a6225a Mon Sep 17 00:00:00 2001 From: Scott Richmond Date: Mon, 4 Apr 2022 19:07:54 -0400 Subject: [PATCH] A little demo for Bree --- hello.ld | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/hello.ld b/hello.ld index 69234bd..8c950ba 100644 --- a/hello.ld +++ b/hello.ld @@ -1 +1,8 @@ -"Hello, world." \ No newline at end of file +fn explode_if_ten { + (10) -> panic! ("That was ten") + (x) -> print ("Ok, not ten!") +} + +explode_if_ten (8) + +explode_if_ten (10) \ No newline at end of file