summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
authorAdam Joseph <adam@westernsemico.com>2022-09-12 12:59:16 -0700
committerAdam Joseph <adam@westernsemico.com>2022-09-12 12:59:16 -0700
commit99da19387705b90647741f020ad2f835e6c8056b (patch)
tree45a7b567dd0e40335025a4032414d256f0fb8846 /lib
parente7bafc814c26812bdad587f347d9a1856287719b (diff)
note that `unionOfDisjoint` is commutative, unlike //
Diffstat (limited to 'lib')
-rw-r--r--lib/attrsets.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/attrsets.nix b/lib/attrsets.nix
index 6c666ea375e59..31dc27969cc04 100644
--- a/lib/attrsets.nix
+++ b/lib/attrsets.nix
@@ -624,7 +624,8 @@ rec {
 
   /* `unionOfDisjoint x y` is equal to `x // y // z` where the
      attrnames in `z` are the intersection of the attrnames in `x` and
-     `y`, and all values `assert` with an error message */
+     `y`, and all values `assert` with an error message.  This
+      operator is commutative, unlike (//). */
   unionOfDisjoint = x: y:
     x // (mapAttrs
       (name: val: