unofficial mirror of 
 help / color / mirror / Atom feed
* [PATCH] doc: Use UNLESS instead of single-armed IF.
@ 2020-06-14 13:37 Ricardo Wurmus
  0 siblings, 0 replies; only message in thread
From: Ricardo Wurmus @ 2020-06-14 13:37 UTC (permalink / raw)
  To: guile-devel

* 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}.
 (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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-06-14 13:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-14 13:37 [PATCH] doc: Use UNLESS instead of single-armed IF Ricardo Wurmus

unofficial mirror of 

This inbox may be cloned and mirrored by anyone:

	git clone --mirror guile-devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 guile-devel guile-devel/ \
	public-inbox-index guile-devel

Example config snippet for mirrors.
Newsgroups are available over NNTP:

AGPL code for this site: git clone http://ou63pmih66umazou.onion/public-inbox.git