Skip to content

Commit 8272d65

Browse files
authored
Merge pull request #2108 from kirtchev-adacore/pr/fix-or-pattern-definition
Fix restrictions of or-patterns
2 parents 50c5de9 + ade7a62 commit 8272d65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/patterns.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1059,7 +1059,7 @@ r[patterns.or]
10591059

10601060
_Or-patterns_ are patterns that match on one of two or more sub-patterns (for example `A | B | C`).
10611061
They can nest arbitrarily.
1062-
Syntactically, or-patterns are allowed in any of the places where other patterns are allowed (represented by the [Pattern] production), with the exceptions of `let`-bindings and function and closure arguments (represented by the [PatternNoTopAlt] production).
1062+
Syntactically, or-patterns are allowed in any of the places where other patterns are allowed (represented by the [Pattern] production), with the exceptions of `let`-bindings and function and closure parameters (represented by the [PatternNoTopAlt] production).
10631063

10641064
r[patterns.constraints]
10651065
### Static semantics

0 commit comments

Comments
 (0)