lib.attrsets.unionOfDisjoint: simplify explanation

The whole business of `// z` is a confusing implementation detail for
the reader.
This commit is contained in:
Wolfgang Walther
2025-09-01 16:52:54 +02:00
parent 46f48b2322
commit bf4b47abc7
+2 -4
View File
@@ -2085,10 +2085,8 @@ rec {
dontRecurseIntoAttrs = attrs: attrs // { recurseForDerivations = false; };
/**
`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. This
operator is commutative, unlike (//).
`unionOfDisjoint x y` is equal to `x // y`, but accessing attributes present
in both `x` and `y` will throw an error. This operator is commutative, unlike `//`.
# Inputs