diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2019-04-17 17:40:00 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2019-04-17 17:40:00 -0700 |
commit | 6eeb29dc80b218019ee927b69d1260a61f7ff3f8 (patch) | |
tree | 54c2dd1edadcde94e5b85e98cff6abb65343ae31 /txr.1 | |
parent | 566de7d4516c8c0d161a95dafcbb530601306538 (diff) | |
download | txr-6eeb29dc80b218019ee927b69d1260a61f7ff3f8.tar.gz txr-6eeb29dc80b218019ee927b69d1260a61f7ff3f8.tar.bz2 txr-6eeb29dc80b218019ee927b69d1260a61f7ff3f8.zip |
doc: wrongly formatted with-resources example.
* txr.1: example of with-resources should use .verb not .mono.
This must be because it previously used .cblk without
indentation.
Diffstat (limited to 'txr.1')
-rw-r--r-- | txr.1 | 15 |
1 files changed, 8 insertions, 7 deletions
@@ -39071,14 +39071,15 @@ are present. .TP* "Example:" -The following opens a text file and reads a line from it, returning that line, -while ensuring that the stream is closed immediately: +The following expression opens a text file and reads a line from it, +returning that line, while ensuring that the stream is closed +immediately: -.mono -(with-resources ((f (open-file "/etc/motd") (close-stream f))) - (whilet ((l (get-line f))) - (put-line l))) -.onom +.verb + (with-resources ((f (open-file "/etc/motd") (close-stream f))) + (whilet ((l (get-line f))) + (put-line l))) +.brev |