From 8848552302e11c13433f5c86f37bf22f3c3790ab Mon Sep 17 00:00:00 2001 From: mark Date: Fri, 26 May 2023 21:29:28 +0200 Subject: [PATCH] changed true to [true] in match statement to remove [] from return types (although it's still there since println() returns [] - this litterally changes nothing, but it's good style) --- examples/switch_match.mers | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/switch_match.mers b/examples/switch_match.mers index 224b117..40113c9 100644 --- a/examples/switch_match.mers +++ b/examples/switch_match.mers @@ -15,5 +15,5 @@ text := "12.5" match { parse_int(text) num println("int: " + num.to_string()) parse_float(text) num println("float: " + num.to_string()) - true [] println("not a number: " + text) + [true] [] println("not a number: " + text) }