summaryrefslogtreecommitdiffstats
path: root/txr.1
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2019-04-17 17:40:00 -0700
committerKaz Kylheku <kaz@kylheku.com>2019-04-17 17:40:00 -0700
commit6eeb29dc80b218019ee927b69d1260a61f7ff3f8 (patch)
tree54c2dd1edadcde94e5b85e98cff6abb65343ae31 /txr.1
parent566de7d4516c8c0d161a95dafcbb530601306538 (diff)
downloadtxr-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.115
1 files changed, 8 insertions, 7 deletions
diff --git a/txr.1 b/txr.1
index 14e5ba62..51ded597 100644
--- a/txr.1
+++ b/txr.1
@@ -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