aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2020-10-19 22:46:35 +0200
committerLudovic Courtès <ludo@gnu.org>2020-10-20 01:07:46 +0200
commit93c251818dcd2bf5f60f42e595504293ee83371a (patch)
tree09be207aa8625058db126ca43d3e82bfaf2595e5 /doc
parentebe6e0394932b1b64f65acdc41535fafacc84254 (diff)
downloadguix-93c251818dcd2bf5f60f42e595504293ee83371a.tar
guix-93c251818dcd2bf5f60f42e595504293ee83371a.tar.gz
doc: More uses of @lisp instead of @example.
* doc/guix.texi (G-Expressions): Use @lisp for 'let-system' example. * doc/contributing.texi (Synopses and Descriptions): Use @lisp for second example.
Diffstat (limited to 'doc')
-rw-r--r--doc/contributing.texi4
-rw-r--r--doc/guix.texi4
2 files changed, 4 insertions, 4 deletions
diff --git a/doc/contributing.texi b/doc/contributing.texi
index 11a932a9bf..26a4627464 100644
--- a/doc/contributing.texi
+++ b/doc/contributing.texi
@@ -605,11 +605,11 @@ to make recommendations or instructions visible to them by inserting
special comments like this (@pxref{xgettext Invocation,,, gettext, GNU
Gettext}):
-@example
+@lisp
;; TRANSLATORS: "X11 resize-and-rotate" should not be translated.
(description "ARandR is designed to provide a simple visual front end
for the X11 resize-and-rotate (RandR) extension. @dots{}")
-@end example
+@end lisp
@node Snippets versus Phases
@subsection Snippets versus Phases
diff --git a/doc/guix.texi b/doc/guix.texi
index 1b29833dba..7eba12aa44 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -9396,7 +9396,7 @@ cross-compiling.
@code{let-system} is useful in the occasional case where the object
spliced into the gexp depends on the target system, as in this example:
-@example
+@lisp
#~(system*
#+(let-system system
(cond ((string-prefix? "armhf-" system)
@@ -9406,7 +9406,7 @@ spliced into the gexp depends on the target system, as in this example:
(else
(error "dunno!"))))
"-net" "user" #$image)
-@end example
+@end lisp
@end deffn
@deffn {Scheme Syntax} with-parameters ((@var{parameter} @var{value}) @dots{}) @var{exp}