lib.attrsets.unionOfDisjoint: simplify explanation (#439225)

The whole business of `// z` is a confusing implementation detail for
the reader.
This commit is contained in:
Johannes Kirschbauer
2025-09-02 11:32:18 +02:00
committed by GitHub
+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