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)

This commit is contained in:
mark 2023-05-26 21:29:28 +02:00
parent 8066487006
commit 8848552302

View File

@ -15,5 +15,5 @@ text := "12.5"
match { match {
parse_int(text) num println("int: " + num.to_string()) parse_int(text) num println("int: " + num.to_string())
parse_float(text) num println("float: " + num.to_string()) parse_float(text) num println("float: " + num.to_string())
true [] println("not a number: " + text) [true] [] println("not a number: " + text)
} }