Skip to content

Commit f336f9a

Browse files
committed
docs: fix incorrect description of map behavior
1 parent 37e7988 commit f336f9a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/v4-to-v5-migration-guide.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ const someFunction = (value: Set<number> | Map<string, number>) =>
5757
.otherwise(() => null);
5858
```
5959

60-
- The subpattern we provide in `P.set(subpattern)` should match all values in the set.
61-
- The value subpattern we provide in `P.map(keyPattern, subpattern)` should only match the values matching `keyPattern` for the whole `P.map(..)` pattern to match the input.
60+
- The subpattern we provide in `P.set(subpattern)` should match all values in the Set.
61+
- The key and value subpatterns we provide in `P.map(keyPattern, subpattern)` should match all keys and values in the Map.
6262

6363
# New features
6464

0 commit comments

Comments
 (0)