doc: cookbook: Fix 'let' form in example.

* doc/guix-cookbook.texi (Extended example): Fix 'let' form in example.
This commit is contained in:
Ludovic Courtès 2020-10-15 15:16:59 +02:00
parent 339177956a
commit 7802988201
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5

@ -1084,11 +1084,11 @@ this:
@lisp
(lambda* (#:key inputs outputs #:allow-other-keys)
(let (((bash-directory (assoc-ref inputs "bash"))
(output-directory (assoc-ref outputs "out"))
(doc-directory (assoc-ref outputs "doc"))
; ...
#t)
(let ((bash-directory (assoc-ref inputs "bash"))
(output-directory (assoc-ref outputs "out"))
(doc-directory (assoc-ref outputs "doc")))
;; ...
#t))
@end lisp
The procedure must return @code{#true} on success. It's brittle to rely on the return