summaryrefslogtreecommitdiffstats
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
commit4b91f3707feaa0146b72a17091c3aff12ce7e3eb (patch)
tree54c2dd1edadcde94e5b85e98cff6abb65343ae31
parenta6bf30a4e542c62c335e2b0db6a5a1c128ab935b (diff)
downloadtxr-4b91f3707feaa0146b72a17091c3aff12ce7e3eb.tar.gz
txr-4b91f3707feaa0146b72a17091c3aff12ce7e3eb.tar.bz2
txr-4b91f3707feaa0146b72a17091c3aff12ce7e3eb.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.
-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