aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlex Ameen <alex.ameen.tx@gmail.com>2022-12-01 10:32:45 -0600
committerAlex Ameen <alex.ameen.tx@gmail.com>2022-12-01 10:32:45 -0600
commitef524013aad45aec846d27a7309cbfb1afdf54c4 (patch)
tree82541a317c2dcdee5dda293b38df1d92a5d2f39f /src
parentec18b7d09b04f3bc4f4de81136fcb79a315bc829 (diff)
doc: listToAttrs: add extra whitespace
Diffstat (limited to 'src')
-rw-r--r--src/libexpr/primops.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/libexpr/primops.cc b/src/libexpr/primops.cc
index 3e7fdf9d6..8a4c19f7c 100644
--- a/src/libexpr/primops.cc
+++ b/src/libexpr/primops.cc
@@ -2420,8 +2420,12 @@ static RegisterPrimOp primop_listToAttrs({
Construct a set from a list specifying the names and values of each
attribute. Each element of the list should be a set consisting of a
string-valued attribute `name` specifying the name of the attribute,
- and an attribute `value` specifying its value. In case of duplicate
- occurrences of the same name, the first takes precedence. Example:
+ and an attribute `value` specifying its value.
+
+ In case of duplicate occurrences of the same name, the first
+ takes precedence.
+
+ Example:
```nix
builtins.listToAttrs