diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-03-17 22:58:17 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-03-17 22:58:17 -0400 |
| commit | cee6a84c21a6353a9e899380b71ad97e68b01909 (patch) | |
| tree | c5472ff29ec30bf52417df30f746cb902ec5df52 /examples | |
| parent | 5109fad68b801a5e89da69976a1a8a4d819d1689 (diff) | |
FIx colorfulwordier-types
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/colorful/colorful.tm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/colorful/colorful.tm b/examples/colorful/colorful.tm index f0901ae2..2aafe330 100644 --- a/examples/colorful/colorful.tm +++ b/examples/colorful/colorful.tm @@ -33,11 +33,11 @@ func main(texts:List(Text), files=[:Path], by_line=no): for file in files: if by_line: - for line in file:by_line() or exit("Could not read file: $(file.text)"): + for line in file:by_line() or exit("Could not read file: $file"): colorful := Colorful.from_text(line) colorful:print() else: - colorful := Colorful.from_text(file:read() or exit("Could not read file: $(file.text)")) + colorful := Colorful.from_text(file:read() or exit("Could not read file: $file")) colorful:print(newline=no) |
