diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-11-09 17:54:32 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-11-09 17:54:32 -0500 |
| commit | 0df908f55fd7f617be35f7fe7a48f2eee1b19d57 (patch) | |
| tree | abe6e7d928f6057b94860e62b2c2a3165eea0a29 /examples/log/log.tm | |
| parent | 145a078387b8bce5e8e3c93c333c030aa7455e4c (diff) | |
Support iterating over pointers to collections again
Diffstat (limited to 'examples/log/log.tm')
| -rw-r--r-- | examples/log/log.tm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/log/log.tm b/examples/log/log.tm index 89557e55..5e32a2b9 100644 --- a/examples/log/log.tm +++ b/examples/log/log.tm @@ -17,22 +17,22 @@ func _timestamp(->Text): func info(text:Text, newline=yes): say("$\[2]⚫ $text$\[]", newline) - for file in logfiles[]: + for file in logfiles: file:append("$(_timestamp()) [info] $text$\n") func debug(text:Text, newline=yes): say("$\[32]🟢 $text$\[]", newline) - for file in logfiles[]: + for file in logfiles: file:append("$(_timestamp()) [debug] $text$\n") func warn(text:Text, newline=yes): say("$\[33;1]🟡 $text$\[]", newline) - for file in logfiles[]: + for file in logfiles: file:append("$(_timestamp()) [warn] $text$\n") func error(text:Text, newline=yes): say("$\[31;1]🔴 $text$\[]", newline) - for file in logfiles[]: + for file in logfiles: file:append("$(_timestamp()) [error] $text$\n") func add_logfile(file:Path): |
