aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorChris Marusich <cmmarusich@gmail.com>2018-03-29 07:29:49 +0200
committerChris Marusich <cmmarusich@gmail.com>2018-03-29 07:29:49 +0200
commit881c61d06222a30dbffbf9d039eaca2abd3d22b3 (patch)
tree3b2e1e3255050b7eb81af31440c560666ce70e9f /doc
parent3cd4447f5639f45b7d833f6fb2adce11ea15ba1d (diff)
downloadguix-881c61d06222a30dbffbf9d039eaca2abd3d22b3.tar
guix-881c61d06222a30dbffbf9d039eaca2abd3d22b3.tar.gz
doc: Improve <service-type> documentation.
* doc/guix.texi (Service Reference): Correct and clarify some statements regarding the "compose" and "extend" procedures of <service-type>.
Diffstat (limited to 'doc')
-rw-r--r--doc/guix.texi10
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/guix.texi b/doc/guix.texi
index b6d041d73e..25c08b9f06 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -21090,16 +21090,16 @@ services.
Otherwise, it must be a one-argument procedure. The procedure is called
by @code{fold-services} and is passed a list of values collected from
-extensions. It must return a value that is a valid parameter value for
-the service instance.
+extensions. It may return any single value.
@item @code{extend} (default: @code{#f})
If this is @code{#f}, services of this type cannot be extended.
Otherwise, it must be a two-argument procedure: @code{fold-services}
-calls it, passing it the initial value of the service as the first argument
-and the result of applying @code{compose} to the extension values as the
-second argument.
+calls it, passing it the initial value of the service as the first
+argument and the result of applying @code{compose} to the extension
+values as the second argument. It must return a value that is a valid
+parameter value for the service instance.
@end table
@xref{Service Types and Services}, for examples.