diff --git a/doc/functions/library/attrsets.xml b/doc/functions/library/attrsets.xml
index b49ccaf739a..fe44dfe4f8e 100644
--- a/doc/functions/library/attrsets.xml
+++ b/doc/functions/library/attrsets.xml
@@ -1364,7 +1364,7 @@ lib.attrsets.optionalAttrs false { my = "set"; }
Merge sets of attributes and use the function f to merge
- attribute values.
+ attribute values where the attribute name is in names.