From 7cb8a151a4036ffcb4950d227326f9066899a8df Mon Sep 17 00:00:00 2001 From: tyow Date: Fri, 13 Feb 2026 14:36:22 -0500 Subject: [PATCH] slight language change --- packages/core/pattern.mjs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/core/pattern.mjs b/packages/core/pattern.mjs index 9339ea50b..85b44b764 100644 --- a/packages/core/pattern.mjs +++ b/packages/core/pattern.mjs @@ -1059,7 +1059,8 @@ const COMPOSERS = { /** * When called on a pattern `a`, with a input pattern `b` (`a.set(b)`), * combines `a` and `b` such that anything defined in `b` - * overwrites the corresponding value in `a` + * and anything defined in `a` that is *not* defined in `b` + * will be in the resulting pattern * * This is the inverse of `keep` * @@ -1091,8 +1092,9 @@ const COMPOSERS = { set: [(a, b) => b], /** * When called on a pattern `a`, with a input pattern `b` (`a.keep(b)`), - * combines `a` and `b` such that anything defined in `a` - * overwrites the corresponding value in `b` + * combines `a` and `b` such that anything defined in `a`, + * and anything defined in `b` that is *not* defined in `a` + * will be in the resulting pattern * * This is the inverse of `set` *