From 074cf22ad462eafe963e4a749b2b74cab51211a1 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Wed, 9 Oct 2024 13:26:28 -0400 Subject: Change function syntax from `func(args)->ret` to `func(args -> ret)` --- examples/ini/ini.tm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/ini') diff --git a/examples/ini/ini.tm b/examples/ini/ini.tm index 37692cae..4e5ec776 100644 --- a/examples/ini/ini.tm +++ b/examples/ini/ini.tm @@ -6,7 +6,7 @@ _HELP := " $_USAGE " -func parse_ini(path:Path)->{Text:{Text:Text}}: +func parse_ini(path:Path -> {Text:{Text:Text}}): text := path:read() or exit("Could not read INI file: $\[31;1]$(path.text_content)$\[]") sections := {:Text:@{Text:Text}} current_section := @{:Text:Text} -- cgit v1.2.3