From 99da19387705b90647741f020ad2f835e6c8056b Mon Sep 17 00:00:00 2001 From: Adam Joseph Date: Mon, 12 Sep 2022 12:59:16 -0700 Subject: [PATCH] note that `unionOfDisjoint` is commutative, unlike // --- lib/attrsets.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/attrsets.nix b/lib/attrsets.nix index 6c666ea375e5..31dc27969cc0 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: