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:36 -0400 |
| commit | 908373f6193bdaa8ac611c139a12a354a546aafa (patch) | |
| tree | 8da9254a8f083efb0a30a5a0e13a4b27fc571ff2 | |
| parent | 80ca0f0b1ba04c1aa3d7bb1a62928dbcecbb3bd8 (diff) | |
FIx colorful
| -rw-r--r-- | Makefile | 2 | ||||
| -rw-r--r-- | examples/colorful/colorful.tm | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -73,7 +73,7 @@ clean: examples: ./tomo -IL examples/commands examples/shell examples/base64 examples/log examples/ini examples/vectors examples/game \ - examples/http examples/threads examples/tomodeps examples/tomo-install examples/wrap examples/pthread + examples/http examples/threads examples/tomodeps examples/tomo-install examples/wrap examples/pthread examples/colorful ./tomo examples/learnxiny.tm install: tomo libtomo.so tomo.1 diff --git a/examples/colorful/colorful.tm b/examples/colorful/colorful.tm index e5baf4ac..a9162237 100644 --- a/examples/colorful/colorful.tm +++ b/examples/colorful/colorful.tm @@ -33,11 +33,11 @@ func main(texts:[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) |
