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/log/log.tm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/log') diff --git a/examples/log/log.tm b/examples/log/log.tm index 42df072c..f537b850 100644 --- a/examples/log/log.tm +++ b/examples/log/log.tm @@ -5,7 +5,7 @@ timestamp_format := CString("%F %T") logfiles := {:Path} -func _timestamp()->Text: +func _timestamp(->Text): c_str := inline C:CString { char *str = GC_MALLOC_ATOMIC(20); time_t t; time(&t); -- cgit v1.2.3