From 6eeb29dc80b218019ee927b69d1260a61f7ff3f8 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Wed, 17 Apr 2019 17:40:00 -0700 Subject: 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. --- txr.1 | 15 ++++++++------- 1 file 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 -- cgit v1.2.3