You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/patterns.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -688,7 +688,7 @@ A struct pattern is refutable if the _PathInExpression_ resolves to a constructo
688
688
Tuple struct patterns match tuple struct and enum values that match all criteria defined by its subpatterns.
689
689
They are also used to [destructure](#destructuring) a tuple struct or enum value.
690
690
691
-
A tuple struct pattern is refutable when one of its subpatterns is refutable.
691
+
A tuple struct pattern is refutable if the _PathInExpression_ resolves to a constructor of an enum with more than one variant, or one of its subpatterns is refutable.
0 commit comments