aboutsummaryrefslogtreecommitdiff
path: root/doc/manual/expressions
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-07-23 14:20:54 +0200
committerEelco Dolstra <edolstra@gmail.com>2020-07-23 18:27:20 +0200
commitee051084723333fc5889c604c829669800e8b43c (patch)
tree5e62b01d0f137b451b504dc2ca1a2378711ec338 /doc/manual/expressions
parent136fd55bb2f7c4f8e93992c6b662d54ce941a73a (diff)
<simplesect> -> <section>
Pandoc silently ignores <simplesect>...
Diffstat (limited to 'doc/manual/expressions')
-rw-r--r--doc/manual/expressions/language-constructs.xml32
-rw-r--r--doc/manual/expressions/language-values.xml12
2 files changed, 22 insertions, 22 deletions
diff --git a/doc/manual/expressions/language-constructs.xml b/doc/manual/expressions/language-constructs.xml
index 4d316609c..82d3afed1 100644
--- a/doc/manual/expressions/language-constructs.xml
+++ b/doc/manual/expressions/language-constructs.xml
@@ -6,7 +6,7 @@
<title>Language Constructs</title>
-<simplesect><title>Recursive sets</title>
+<section><title>Recursive sets</title>
<para>Recursive sets are just normal sets, but the attributes can
refer to each other. For example,
@@ -38,10 +38,10 @@ does not terminate<footnote><para>Actually, Nix detects infinite
recursion in this case and aborts (<quote>infinite recursion
encountered</quote>).</para></footnote>.</para>
-</simplesect>
+</section>
-<simplesect xml:id="sect-let-expressions"><title>Let-expressions</title>
+<section xml:id="sect-let-expressions"><title>Let-expressions</title>
<para>A let-expression allows you to define local variables for an
expression. For instance,
@@ -56,10 +56,10 @@ evaluates to <literal>"foobar"</literal>.
</para>
-</simplesect>
+</section>
-<simplesect><title>Inheriting attributes</title>
+<section><title>Inheriting attributes</title>
<para>When defining a set or in a let-expression it is often convenient to copy variables
from the surrounding lexical scope (e.g., when you want to propagate
@@ -129,10 +129,10 @@ a = src-set.a; b = src-set.b; c = src-set.c;
when used while defining local variables in a let-expression or
while defining a set.</para>
-</simplesect>
+</section>
-<simplesect xml:id="ss-functions"><title>Functions</title>
+<section xml:id="ss-functions"><title>Functions</title>
<para>Functions have the following form:
@@ -248,10 +248,10 @@ in concat { x = "foo"; y = "bar"; }</programlisting>
</para>
-</simplesect>
+</section>
-<simplesect><title>Conditionals</title>
+<section><title>Conditionals</title>
<para>Conditionals look like this:
@@ -262,10 +262,10 @@ where <replaceable>e1</replaceable> is an expression that should
evaluate to a Boolean value (<literal>true</literal> or
<literal>false</literal>).</para>
-</simplesect>
+</section>
-<simplesect><title>Assertions</title>
+<section><title>Assertions</title>
<para>Assertions are generally used to check that certain requirements
on or between features and dependencies hold. They look like this:
@@ -349,11 +349,11 @@ stdenv.mkDerivation {
</orderedlist>
-</simplesect>
+</section>
-<simplesect><title>With-expressions</title>
+<section><title>With-expressions</title>
<para>A <emphasis>with-expression</emphasis>,
@@ -394,16 +394,16 @@ let a = 1; in let a = 2; in let a = 3; in let a = 4; in ...</programlisting>
</para>
-</simplesect>
+</section>
-<simplesect><title>Comments</title>
+<section><title>Comments</title>
<para>Comments can be single-line, started with a <literal>#</literal>
character, or inline/multi-line, enclosed within <literal>/*
... */</literal>.</para>
-</simplesect>
+</section>
</section>
diff --git a/doc/manual/expressions/language-values.xml b/doc/manual/expressions/language-values.xml
index 4a72c67a8..6c0fcbacb 100644
--- a/doc/manual/expressions/language-values.xml
+++ b/doc/manual/expressions/language-values.xml
@@ -7,7 +7,7 @@
<title>Values</title>
-<simplesect><title>Simple Values</title>
+<section><title>Simple Values</title>
<para>Nix has the following basic data types:
@@ -193,10 +193,10 @@ stdenv.mkDerivation {
</para>
-</simplesect>
+</section>
-<simplesect><title>Lists</title>
+<section><title>Lists</title>
<para>Lists are formed by enclosing a whitespace-separated list of
values between square brackets. For example,
@@ -217,10 +217,10 @@ function and the fifth being a set.</para>
<para>Note that lists are only lazy in values, and they are strict in length.
</para>
-</simplesect>
+</section>
-<simplesect><title>Sets</title>
+<section><title>Sets</title>
<para>Sets are really the core of the language, since ultimately the
Nix language is all about creating derivations, which are really just
@@ -307,7 +307,7 @@ a form of object-oriented programming, for example.
</para>
-</simplesect>
+</section>
</section>