diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-09-16 16:06:19 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-09-16 16:06:19 -0400 |
| commit | de49bc5bb3198f450cb367085f9def0d89782258 (patch) | |
| tree | a81354271bd3de567a7656807416cd5c69e4b08b /examples/wrap/wrap.tm | |
| parent | 821bde156c222c7384c67517d773dc14a03342e7 (diff) | |
Deprecate :or_else()/:or_fail()/:or_exit() in favor of the `or` operator
Diffstat (limited to 'examples/wrap/wrap.tm')
| -rw-r--r-- | examples/wrap/wrap.tm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/wrap/wrap.tm b/examples/wrap/wrap.tm index 54198193..a89d8b41 100644 --- a/examples/wrap/wrap.tm +++ b/examples/wrap/wrap.tm @@ -82,7 +82,7 @@ func main(files:[Path], width=80, inplace=no, min_split=3, rewrap=yes, hyphen=UN files = [(/dev/stdin)] for file in files: - text := file:read():or_exit("Could not read file: $(file.text_content)") + text := file:read() or exit("Could not read file: $(file.text_content)") if rewrap: text = unwrap(text) |
