diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-04-06 23:37:05 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-04-06 23:37:05 -0400 |
| commit | 1a196aa8f724971e531487f9cdd541f7957cfd92 (patch) | |
| tree | 52a36701065ab0e3f7012765c909c3b2a3fd2e49 /docs/paths.md | |
| parent | 4a3db447ce820617a72bdd9fc6217c84c3799bea (diff) | |
Update syntax in docs
Diffstat (limited to 'docs/paths.md')
| -rw-r--r-- | docs/paths.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/paths.md b/docs/paths.md index cde7f74d..99891671 100644 --- a/docs/paths.md +++ b/docs/paths.md @@ -181,14 +181,14 @@ value if the file couldn't be read. **Example:** ```tomo # Safely handle file not being readable: -if lines := (./file.txt).by_line(): - for line in lines: +if lines := (./file.txt).by_line() + for line in lines say(line.upper()) -else: +else say("Couldn't read file!") # Assume the file is readable and error if that's not the case: -for line in (/dev/stdin).by_line()!: +for line in (/dev/stdin).by_line()! say(line.upper()) ``` |
