1
0
Fork 0
mirror of https://github.com/NixOS/nix-pills synced 2024-09-19 04:00:13 -04:00

Debugged Pill 5 broken tag, added section title to first section.

This commit is contained in:
Matan Bendix Shenhav 2017-08-13 13:49:35 +03:00
parent 3b36892663
commit 489899b8be

View file

@ -6,7 +6,7 @@ xml:id="functions-and-imports">
<title>functions and imports</title>
<section>
<title>Functions</title>
<para>
Welcome to the fifth Nix pill. In the previous <link
linkend="basics-of-the-language">fourth pill</link> we touched the
@ -95,7 +95,7 @@ xml:id="functions-and-imports">
<para>
We defined a function that takes the parameter <literal>a</literal>,
the body returns another function. This other function takes a
parameter <literal>b<literal> and returns <literal>a*b</literal>.
parameter <literal>b</literal> and returns <literal>a*b</literal>.
Therefore, calling <literal>mul 3</literal> returns this kind of
function: <literal>b: 3*b</literal>. In turn, we call the returned
function with <literal>4</literal>, and get the expected result.