Merge pull request #7093 from amjoseph-nixpkgs/pr/intersectAttrs/values

src/libexpr/primops.cc: correct definition for intersectAttrs
This commit is contained in:
Eelco Dolstra 2022-09-26 11:11:53 +02:00 committed by GitHub
commit e25a36cdac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2454,8 +2454,8 @@ static RegisterPrimOp primop_intersectAttrs({
.name = "__intersectAttrs", .name = "__intersectAttrs",
.args = {"e1", "e2"}, .args = {"e1", "e2"},
.doc = R"( .doc = R"(
Return a set consisting of the attributes in the set *e2* that also Return a set consisting of the attributes in the set *e2* which have the
exist in the set *e1*. same name as some attribute in *e1*.
)", )",
.fun = prim_intersectAttrs, .fun = prim_intersectAttrs,
}); });