guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] doc: Use UNLESS instead of single-armed IF.


From: Ricardo Wurmus
Subject: [PATCH] doc: Use UNLESS instead of single-armed IF.
Date: Sun, 14 Jun 2020 15:37:48 +0200

* doc/ref/posix.texi (Pipes): Use UNLESS in OPEN-OUTPUT-PIPE example.
---
 doc/ref/posix.texi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/doc/ref/posix.texi b/doc/ref/posix.texi
index b2be9d707..ce753b864 100644
--- a/doc/ref/posix.texi
+++ b/doc/ref/posix.texi
@@ -2335,8 +2335,8 @@ Equivalent to @code{open-pipe} with mode 
@code{OPEN_WRITE}.
 @lisp
 (let ((port (open-output-pipe "lpr")))
   (display "Something for the line printer.\n" port)
-  (if (not (eqv? 0 (status:exit-val (close-pipe port))))
-      (error "Cannot print")))
+  (unless (eqv? 0 (status:exit-val (close-pipe port))))
+    (error "Cannot print"))
 @end lisp
 @end deffn
 
-- 
2.26.2





reply via email to

[Prev in Thread] Current Thread [Next in Thread]