Skip to content

Commit a746a7f

Browse files
authored
Update match-types.md
corrected syntax
1 parent 2023f04 commit a746a7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/_docs/reference/new-types/match-types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ following conditions are met:
8383
and these types are `=:=` to their corresponding type patterns in the match
8484
type
8585

86-
So you know, While the case body will be expected to have the type on the right-hand
86+
So you know, while the case body will be expected to have the type on the right-hand
8787
side of the corresponding match type case, that doesn't imply the match type argument
8888
is constrained. Using the example, the last case body must conform to X, but that
8989
doesn't constrain X to be AnyVal, and therefore a LeafElem[X] inside the body wouldn't

0 commit comments

Comments
 (0)